diff --git a/Project.toml b/Project.toml index 072fc0223..e101f4ffc 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DiffEqBase" uuid = "2b5f629d-d688-5b77-993f-72d75c75574e" authors = ["Chris Rackauckas "] -version = "6.148.0" +version = "6.149.0" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/test/gpu/termination_conditions.jl b/test/gpu/termination_conditions.jl index d0811a311..1450c3d98 100644 --- a/test/gpu/termination_conditions.jl +++ b/test/gpu/termination_conditions.jl @@ -1,4 +1,4 @@ -using BenchmarkTools, CUDA, DiffEqBase, Test +using BenchmarkTools, CUDA, DiffEqBase, Test, LinearAlgebra CUDA.allowscalar(false) du = cu(rand(4)) @@ -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