Skip to content

Commit

Permalink
Don't use cusparseSpMM_process with old versions of CUSPARSE
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Nov 29, 2023
1 parent 5aa719b commit dfe4cd1
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 @@ -236,7 +236,7 @@ function mm!(transa::SparseChar, transb::SparseChar, alpha::Number, A::Union{CuS
end
with_workspace(bufferSize) do buffer
# We should find a way to reuse the buffer (issue #1362)
if !(A isa CuSparseMatrixCOO)
if !(A isa CuSparseMatrixCOO) && (CUSPARSE.version() v"11.7.2")
cusparseSpMM_preprocess(
handle(), transa, transb, Ref{T}(alpha), descA, descB, Ref{T}(beta),
descC, T, algo, buffer)
Expand Down Expand Up @@ -295,7 +295,7 @@ function mm!(transa::SparseChar, transb::SparseChar, alpha::Number, A::DenseCuMa
end
with_workspace(bufferSize) do buffer
# We should find a way to reuse the buffer (issue #1362)
if !(B isa CuSparseMatrixCOO)
if !(B isa CuSparseMatrixCOO) && (CUSPARSE.version() v"11.7.2")
cusparseSpMM_preprocess(
handle(), transb, transa, Ref{T}(alpha), descB, descA, Ref{T}(beta),
descC, T, algo, buffer)
Expand Down

0 comments on commit dfe4cd1

Please sign in to comment.