Skip to content

Commit 85b31cf

Browse files
Update factorization.jl
1 parent e490ea8 commit 85b31cf

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

src/factorization.jl

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,61 +1115,6 @@ function SciMLBase.solve!(cache::LinearCache, alg::DiagonalFactorization;
11151115
SciMLBase.build_linear_solution(alg, cache.u, nothing, cache)
11161116
end
11171117

1118-
## CUSOLVERRFFactorization
1119-
1120-
"""
1121-
`CUSOLVERRFFactorization(; symbolic = :RF, reuse_symbolic = true)`
1122-
1123-
A GPU-accelerated sparse LU factorization using NVIDIA's cusolverRF library.
1124-
This solver is specifically designed for sparse matrices on CUDA GPUs and
1125-
provides high-performance factorization and solve capabilities.
1126-
1127-
## Keyword Arguments
1128-
1129-
- `symbolic`: The symbolic factorization method to use. Options are:
1130-
- `:RF` (default): Use cusolverRF's built-in symbolic analysis
1131-
- `:KLU`: Use KLU for symbolic analysis
1132-
- `reuse_symbolic`: Whether to reuse the symbolic factorization when the
1133-
sparsity pattern doesn't change (default: `true`)
1134-
1135-
!!! note
1136-
This solver requires CUSOLVERRF.jl to be loaded and only supports
1137-
`Float64` element types with `Int32` indices.
1138-
"""
1139-
Base.@kwdef struct CUSOLVERRFFactorization <: AbstractSparseFactorization
1140-
symbolic::Symbol = :RF
1141-
reuse_symbolic::Bool = true
1142-
end
1143-
1144-
function init_cacheval(alg::CUSOLVERRFFactorization,
1145-
A, b, u, Pl, Pr,
1146-
maxiters::Int, abstol, reltol,
1147-
verbose::Bool, assumptions::OperatorAssumptions)
1148-
nothing
1149-
end
1150-
1151-
function SciMLBase.solve!(cache::LinearCache, alg::CUSOLVERRFFactorization; kwargs...)
1152-
error_no_cusolverrf(cache.A)
1153-
error("CUSOLVERRFFactorization requires CUSOLVERRF.jl to be loaded")
1154-
end
1155-
1156-
ALREADY_WARNED_CUSOLVERRF = Ref{Bool}(false)
1157-
cusolverrf_loaded(A) = false
1158-
1159-
function error_no_cusolverrf(A)
1160-
if LinearSolve.cusolverrf_loaded(A)
1161-
return nothing
1162-
end
1163-
if !ALREADY_WARNED_CUSOLVERRF[]
1164-
@error """
1165-
Attempt to use CUSOLVERRFFactorization without loading CUSOLVERRF.jl.
1166-
Please load the library first with `using CUSOLVERRF`.
1167-
"""
1168-
ALREADY_WARNED_CUSOLVERRF[] = true
1169-
end
1170-
return nothing
1171-
end
1172-
11731118
## SparspakFactorization is here since it's MIT licensed, not GPL
11741119

11751120
"""

0 commit comments

Comments
 (0)