Skip to content

Commit

Permalink
Minor CUDA test change
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaskl97 committed Feb 5, 2025
1 parent 7ddc4c7 commit 89bb9ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/damped_sho_CUDA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ end

# Check local negative semidefiniteness of V̇ at fixed point
@test ((fixed_point) |> cpud)[] == 0.0
@test all(.≈(ForwardDiff.gradient(x -> ((x) |> cpud)[], fixed_point), 0.0; atol=0.1))
@test_broken all(eigvals(ForwardDiff.hessian(x -> ((x) |> cpud)[], fixed_point)) . 0.0)
@test maximum(abs, ForwardDiff.gradient(x -> ((x) |> cpud)[], fixed_point)) < 0.1
@test_broken maximum(eigvals(ForwardDiff.hessian(x -> ((x) |> cpud)[], fixed_point))) 0.0

# V̇ should be negative almost everywhere
@test sum(V̇_samples .> 0) / length(V̇_samples) < 5e-3
Expand Down

0 comments on commit 89bb9ba

Please sign in to comment.