Skip to content

Commit 8172d19

Browse files
committed
Update the GPU tests
1 parent 7346594 commit 8172d19

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DiffEqBase"
22
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
33
authors = ["Chris Rackauckas <accounts@chrisrackauckas.com>"]
4-
version = "6.148.0"
4+
version = "6.149.0"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

test/gpu/termination_conditions.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using BenchmarkTools, CUDA, DiffEqBase, Test
1+
using BenchmarkTools, CUDA, DiffEqBase, Test, LinearAlgebra
22
CUDA.allowscalar(false)
33

44
du = cu(rand(4))
@@ -14,6 +14,9 @@ const TERMINATION_CONDITIONS = [
1414

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

0 commit comments

Comments
 (0)