Skip to content

Commit

Permalink
Fix an error in CudssMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Dec 12, 2024
1 parent ab0a1f1 commit 65f9c6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ mutable struct CudssMatrix{T}
nrows = [size(Aᵢ,1) for Aᵢ in A]
ncols = [size(Aᵢ,2) for Aᵢ in A]
nnzA = [nnz(Aᵢ) for Aᵢ in A]
rowsPtrs = [A.rowPtr for Aᵢ in A]
colVals = [A.colVal for Aᵢ in A]
nzVals = [A.nzVal for Aᵢ in A]
rowsPtrs = [Aᵢ.rowPtr for Aᵢ in A]
colVals = [Aᵢ.colVal for Aᵢ in A]
nzVals = [Aᵢ.nzVal for Aᵢ in A]
PTR_CU_NULL = Ptr{CuPtr{Cvoid}}()
cudssMatrixCreateBatchCsr(matrix_ref, nbatch, nrows, ncols, nnzA, rowPtrs,
PTR_CU_NULL, colVals, nzVals, Cint, T, structure,
Expand Down

0 comments on commit 65f9c6f

Please sign in to comment.