Skip to content

Commit

Permalink
Update descriptor TriangularOperator for AMD GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Dec 7, 2023
1 parent 9910494 commit 2781c1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/AMDGPU/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ for (SparseMatrixType, BlasType) in ((:(ROCSparseMatrixCSR{T}), :BlasFloat),
end

function KP.update!(A::AMD_TriangularOperator{T}, B::$SparseMatrixType) where T <: $BlasFloat
descB = rocSPARSE.ROCSparseMatrixDescriptor(B, 'O')
A.descA = descB
(B isa ROCSparseMatrixCOO) && rocSPARSE.rocsparse_coo_set_pointers(A.descA, B.rowInd, B.colInd, B.nzVal)
(B isa ROCSparseMatrixCSR) && rocSPARSE.rocsparse_csr_set_pointers(A.descA, B.rowPtr, B.colVal, B.nzVal)
return A
end
end
Expand Down

0 comments on commit 2781c1d

Please sign in to comment.