Skip to content

Commit a3c6f41

Browse files
committed
debug
1 parent 8cae9ed commit a3c6f41

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/solver/highlevel.jl

+7-8
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ for (fname, elty) in (
226226
(mA == nA == mB == nB == mC == nC) || throw(DimensionMismatch("The first two dimensions of A, B and C must match"))
227227
(nblocksA == nblocksB - 1 == nblocksC) || throw(DimensionMismatch("Inconsistency for the last dimension of A, B and C"))
228228

229-
lda = max(1, stride(A, 3))
230-
ldb = max(1, stride(B, 3))
231-
ldc = max(1, stride(C, 3))
229+
lda = max(1, stride(A, 2))
230+
ldb = max(1, stride(B, 2))
231+
ldc = max(1, stride(C, 2))
232232

233233
devinfo = ROCArray{Cint}(undef, 1)
234234
$fname(rocBLAS.handle(), mB, nblocksB, A, lda, B, ldb, C, ldc, devinfo)
@@ -252,15 +252,14 @@ for (fname, elty) in (
252252
mB, nB, nblocksB = size(B)
253253
mC, nC, nblocksC = size(C)
254254
mX, nblocksX, nrhs = size(X)
255-
nrhs = size(X, 2)
256255
(mA == nA == mB == nB == mC == nC) || throw(DimensionMismatch("The first two dimensions of A, B and C must match"))
257256
(mX == mA) || throw(DimensionMismatch("The first dimension of X is inconsistent with first two dimensions of A, B and C"))
258257
(nblocksA == nblocksB - 1 == nblocksX - 1 == nblocksC) || throw(DimensionMismatch("Inconsistency for the number of blocks in A, B, C and X"))
259258

260-
lda = max(1, stride(A, 3))
261-
ldb = max(1, stride(B, 3))
262-
ldc = max(1, stride(C, 3))
263-
ldx = max(1, stride(X, 3))
259+
lda = max(1, stride(A, 2))
260+
ldb = max(1, stride(B, 2))
261+
ldc = max(1, stride(C, 2))
262+
ldx = max(1, stride(X, 2))
264263

265264
$fname(rocBLAS.handle(), mB, nblocksB, nrhs, A, lda, B, ldb, C, ldc, X, ldx)
266265
X

0 commit comments

Comments
 (0)