Skip to content

Commit 5db6744

Browse files
committed
Switch or for and
1 parent af0fdf9 commit 5db6744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/libraries/cusparse/interfaces.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ nB = 2
215215
@test z collect(dz)
216216
end
217217
# seems to be a library bug in CUDAs 12.0-12.2, only fp64 types are supported
218-
if SparseMatrixType != CuSparseMatrixBSR || elty (Float64, ComplexF64) || CUSPARSE.version() < v"12.0" || v"12.2" < CUSPARSE.version()
218+
if SparseMatrixType != CuSparseMatrixBSR && (elty (Float64, ComplexF64) || CUSPARSE.version() < v"12.0" || v"12.2" < CUSPARSE.version())
219219
@testset "ldiv! -- (CuVector, CuVector)" begin
220220
z = rand(elty, m)
221221
dz = CuArray(z)
@@ -246,7 +246,7 @@ nB = 2
246246
@test_throws DimensionMismatch(error_str) ldiv!(triangle(opa(dA)), opb(dB_bad))
247247
end
248248
end
249-
if SparseMatrixType != CuSparseMatrixBSR || elty (Float64, ComplexF64) || CUSPARSE.version() != v"12.0"
249+
if SparseMatrixType != CuSparseMatrixBSR && (elty (Float64, ComplexF64) || CUSPARSE.version() != v"12.0")
250250
@testset "ldiv! -- (CuMatrix, CuMatrix)" begin
251251
C = rand(elty, m, nB)
252252
dC = CuArray(C)

0 commit comments

Comments
 (0)