Skip to content

Commit b961dc0

Browse files
committed
update amdgpu test
1 parent 04f0f90 commit b961dc0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/test_amdgpu_2d.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ isdir(outdir) && rm(outdir, recursive = true)
2121
linf=6.627000273229378e-5)
2222
# Ensure that we do not have excessive memory allocations
2323
# (e.g., from type instabilities)
24+
semi = ode.p # `semidiscretize` adapts the semi, so we need to obtain it from the ODE problem.
2425
@test_allocations(Trixi.rhs!, semi, sol, 1000)
2526
@test real(ode.p.solver) == Float64
2627
@test real(ode.p.solver.basis) == Float64
@@ -49,6 +50,7 @@ end
4950
storage_type=ROCArray)
5051
# Ensure that we do not have excessive memory allocations
5152
# (e.g., from type instabilities)
53+
semi = ode.p # `semidiscretize` adapts the semi, so we need to obtain it from the ODE problem.
5254
@test_allocations(Trixi.rhs!, semi, sol, 1000)
5355
@test real(ode.p.solver) == Float32
5456
@test real(ode.p.solver.basis) == Float32

test/test_amdgpu_3d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
# Ensure that we do not have excessive memory allocations
5252
# (e.g., from type instabilities)
5353
semi = ode.p # `semidiscretize` adapts the semi, so we need to obtain it from the ODE problem.
54-
@test_allocations(Trixi.rhs!, semi, sol, 1000)
54+
@test_allocations(Trixi.rhs!, semi, sol, 35_000)
5555
@test real(ode.p.solver) == Float32
5656
@test real(ode.p.solver.basis) == Float32
5757
@test real(ode.p.solver.mortar) == Float32

0 commit comments

Comments
 (0)