Skip to content

Commit

Permalink
fix CPU tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale-Black committed Sep 10, 2024
1 parent e8bb4c9 commit 97efbed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ AVAILABLE_GPU_BACKENDS = ["CUDA", "AMDGPU", "Metal", "oneAPI"]
TEST_BACKENDS = filter(x->x in [AVAILABLE_GPU_BACKENDS; "CPU"], ARGS)

if isempty(TEST_BACKENDS)
using Preferences
TEST_BACKENDS = [load_preference(KomaMRICore, "test_backend", "CPU")]
@info "Using [preferences.KomaMRICore]." backend=first(TEST_BACKENDS)
TEST_BACKENDS = ["CPU"]
@info "Using $(backend=first(TEST_BACKENDS))"
else
@info "Using test_args" backend=first(TEST_BACKENDS)
end
Expand Down Expand Up @@ -35,6 +34,7 @@ elseif "oneAPI" in TEST_BACKENDS
backend = oneBackend()
dev = oneArray
else
using KernelAbstractions: CPU
@info "CPU using $(Threads.nthreads()) thread(s)" maxlog=1
backend = CPU()
dev = Array
Expand Down

0 comments on commit 97efbed

Please sign in to comment.