-
-
Notifications
You must be signed in to change notification settings - Fork 62
Fix LinearSolveCUDAExt.jl #639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Should fix gpu failure
ext/LinearSolveCUDAExt.jl
Outdated
@@ -3,7 +3,7 @@ module LinearSolveCUDAExt | |||
using CUDA | |||
using LinearSolve: LinearSolve, is_cusparse, defaultalg, cudss_loaded, DefaultLinearSolver, | |||
DefaultAlgorithmChoice, ALREADY_WARNED_CUDSS, LinearCache, needs_concrete_A, | |||
error_no_cudss_lu, CUDSS_LOADED, init_cacheval | |||
error_no_cudss_lu, init_cacheval |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still used throughout this file
ext/LinearSolveCUDAExt.jl
Outdated
@@ -25,7 +25,7 @@ function LinearSolve.defaultalg(A::CUDA.CUSPARSE.CuSparseMatrixCSR{Tv, Ti}, b, | |||
end | |||
|
|||
function LinearSolve.error_no_cudss_lu(A::CUDA.CUSPARSE.CuSparseMatrixCSR) | |||
if !LinearSolve.CUDSS_LOADED[] | |||
if !LinearSolve.cudss_loaded[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this a function?
using LinearSolve: LinearSolve, is_cusparse, defaultalg, cudss_loaded, DefaultLinearSolver, | ||
DefaultAlgorithmChoice, ALREADY_WARNED_CUDSS, LinearCache, needs_concrete_A, | ||
error_no_cudss_lu, CUDSS_LOADED, init_cacheval | ||
error_no_cudss_lu, init_cacheval, OperatorAssumptions, CudaOffloadFactorization, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
using LinearSolve: LinearSolve, is_cusparse, defaultalg, cudss_loaded, DefaultLinearSolver, | |
DefaultAlgorithmChoice, ALREADY_WARNED_CUDSS, LinearCache, needs_concrete_A, | |
error_no_cudss_lu, CUDSS_LOADED, init_cacheval | |
error_no_cudss_lu, init_cacheval, OperatorAssumptions, CudaOffloadFactorization, | |
using LinearSolve: LinearSolve, is_cusparse, defaultalg, cudss_loaded, DefaultLinearSolver, | |
DefaultAlgorithmChoice, ALREADY_WARNED_CUDSS, LinearCache, | |
needs_concrete_A, | |
error_no_cudss_lu, init_cacheval, OperatorAssumptions, | |
CudaOffloadFactorization, |
Should fix gpu failure