Skip to content

Commit

Permalink
Update the GPU tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Mar 31, 2024
1 parent 7346594 commit ba13f15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DiffEqBase"
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
authors = ["Chris Rackauckas <[email protected]>"]
version = "6.148.0"
version = "6.149.0"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
5 changes: 4 additions & 1 deletion test/gpu/termination_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const TERMINATION_CONDITIONS = [

@testset "Termination Conditions: Allocations" begin
@testset "Mode: $(tcond)" for tcond in TERMINATION_CONDITIONS
@test_nowarn DiffEqBase.check_convergence(tcond, du, u, uprev, 1e-3, 1e-3)
for nfn in (Base.Fix1(maximum, abs), Base.Fix2(norm, 2), Base.Fix2(norm, Inf))
tcond = DiffEqBase.set_termination_mode_internalnorm(tcond, nfn)
@test_nowarn DiffEqBase.check_convergence(tcond, du, u, uprev, 1e-3, 1e-3)
end
end
end

0 comments on commit ba13f15

Please sign in to comment.