Skip to content

Commit 73a6d26

Browse files
committed
workaround: avoid CSC -> CSR conversion in test
1 parent 439b779 commit 73a6d26

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/cusparse/test/interfaces.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ nB = 2
339339
rowmask_d = CuVector(rowmask)
340340
colmask_d = CuVector(colmask)
341341
@testset "type = $SparseMatrixType" for SparseMatrixType in (CuSparseMatrixCSC, CuSparseMatrixCSR)
342-
dA = SparseMatrixType(A)
342+
# CUDA 12.0 has a bug in CSC -> CSR conversion, so we go though COO
343+
dA_coo = CuSparseMatrixCOO(A)
344+
dA = SparseMatrixType(dA_coo)
343345
dS = dA[rowmask_d, colmask_d]
344346
@test dS isa SparseMatrixType
345347
@test S_cpu collect(dS)

0 commit comments

Comments
 (0)