Skip to content

Commit

Permalink
[CUSPARSE] Use cusparseSDDMM_preprocess (#2184)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored Nov 29, 2023
1 parent 9c281af commit 62063dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cusparse/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ function sddmm!(transa::SparseChar, transb::SparseChar, alpha::Number, A::DenseC
return out[]
end
with_workspace(bufferSize) do buffer
# Uncomment if we find a way to reuse the buffer (issue #1362)
# cusparseSDDMM_preprocess(handle(), transa, transb, Ref{T}(alpha), descA, descB, Ref{T}(beta), descC, T, algo, buffer)
# We should find a way to reuse the buffer (issue #1362)
cusparseSDDMM_preprocess(handle(), transa, transb, Ref{T}(alpha), descA, descB, Ref{T}(beta), descC, T, algo, buffer)
cusparseSDDMM(handle(), transa, transb, Ref{T}(alpha), descA, descB, Ref{T}(beta), descC, T, algo, buffer)
end
return C
Expand Down

0 comments on commit 62063dd

Please sign in to comment.