Skip to content

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

Merged
merged 6 commits into from
Jul 22, 2025
Merged

Fix LinearSolveCUDAExt.jl #639

merged 6 commits into from
Jul 22, 2025

Conversation

ChrisRackauckas
Copy link
Member

Should fix gpu failure

Should fix gpu failure
@@ -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
Copy link
Member

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

@@ -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[]
Copy link
Member

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?

@ChrisRackauckas ChrisRackauckas merged commit 1ef9286 into main Jul 22, 2025
38 of 42 checks passed
@ChrisRackauckas ChrisRackauckas deleted the ChrisRackauckas-patch-1 branch July 22, 2025 06:11
Comment on lines 4 to +6
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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants