We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940ea1d commit a01b866Copy full SHA for a01b866
src/LinearSolve.jl
@@ -434,7 +434,10 @@ appleaccelerate_isavailable() = HAS_APPLE_ACCELERATE[]
434
435
# Extension availability checking functions
436
useblis() = Base.get_extension(@__MODULE__, :LinearSolveBLISExt) !== nothing
437
-usecuda() = Base.get_extension(@__MODULE__, :LinearSolveCUDAExt) !== nothing
+function usecuda()
438
+ ext = Base.get_extension(@__MODULE__, :LinearSolveCUDAExt)
439
+ !isnothing(ext) && ext.CUDA.functional()
440
+end
441
442
# Metal is only available on Apple platforms
443
@static if !Sys.isapple()
0 commit comments