Skip to content

Commit

Permalink
Run CUDA.versioninfo only if functional
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 30, 2022
1 parent 5fc7177 commit 0e93320
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/FoldsCUDATests/src/FoldsCUDATests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ function runtests_unionarrays(; kwargs...)
end

function before_test_module()
if !CUDA.functional()
@info "CUDA.jl not functional"
return
end

GPUArrays.allowscalar(false)

if lowercase(get(ENV, "CI", "false")) == "true"
Expand Down

0 comments on commit 0e93320

Please sign in to comment.