Skip to content

Commit ca8613b

Browse files
committed
Apply fix for dgerBatch
1 parent 9780df9 commit ca8613b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpuarray_blas_cuda_cublas.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,9 +1766,9 @@ static int dgerBatch(cb_order order, size_t M, size_t N, double alpha,
17661766
}
17671767

17681768
for (i = 0; i < batchCount; i++) {
1769-
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(A[i], CUDA_WAIT_READ));
1769+
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(A[i], CUDA_WAIT_ALL));
17701770
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(x[i], CUDA_WAIT_READ));
1771-
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(y[i], CUDA_WAIT_ALL));
1771+
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(y[i], CUDA_WAIT_READ));
17721772
}
17731773

17741774
cuda_exit(ctx);

0 commit comments

Comments
 (0)