Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #650 from JuliaGPU/tb/non_functional
Browse files Browse the repository at this point in the history
Fix and test initialization without CUDA.
  • Loading branch information
maleadt authored Mar 26, 2020
2 parents a8fc186 + f8ea5bc commit 29cf919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ cuda:none:
script:
- julia --project -e 'using Pkg;
Pkg.instantiate();
Pkg.build();
Pkg.API.precompile()'
Pkg.build()'
- julia --project -e 'using CuArrays;
@assert !CuArrays.functional(true)'


# hardware platforms
Expand Down
2 changes: 1 addition & 1 deletion src/CuArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function __configure__(show_reason::Bool)
# if any dependent GPU package failed, expect it to have logged an error and bail out
if !CUDAdrv.functional(show_reason) || !CUDAnative.functional(show_reason)
show_reason && @warn "CuArrays.jl did not initialize because CUDAdrv.jl or CUDAnative.jl failed to"
return
return false
end

return __configure_dependencies__(show_reason)
Expand Down

0 comments on commit 29cf919

Please sign in to comment.