Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Nov 28, 2023
1 parent d722cfc commit 9fa3503
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/CUDA/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ eltype(A::CUDA_KrylovOperator{T}) where T = T
size(A::CUDA_KrylovOperator) = (A.m, A.n)

for (SparseMatrixType, BlasType) in ((:(CuSparseMatrixCSR{T}), :BlasFloat),
(:(CuSparseMatrixCSC{T}), :BlasFloat))
(:(CuSparseMatrixCSC{T}), :BlasFloat),
(:(CuSparseMatrixCOO{T}), :BlasFloat)))
@eval begin
function KP.KrylovOperator(A::$SparseMatrixType; nrhs::Int=1, transa::Char='N') where T <: $BlasType
m,n = size(A)
Expand Down
1 change: 1 addition & 0 deletions ext/KrylovPreconditionersCUDAExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using CUDA
using CUDA.CUSPARSE
using LinearAlgebra: checksquare, BlasReal, BlasFloat
import LinearAlgebra: ldiv!, mul!
import Base: size, eltype

using KrylovPreconditioners
const KP = KrylovPreconditioners
Expand Down

0 comments on commit 9fa3503

Please sign in to comment.