Skip to content

Commit 9780df9

Browse files
committed
Try to fix theano error related to sger.
1 parent c038be9 commit 9780df9

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
@@ -1636,9 +1636,9 @@ static int sgerBatch(cb_order order, size_t M, size_t N, float alpha,
16361636

16371637

16381638
for (i = 0; i < batchCount; i++) {
1639-
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(A[i], CUDA_WAIT_READ));
1639+
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(A[i], CUDA_WAIT_ALL));
16401640
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(x[i], CUDA_WAIT_READ));
1641-
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(y[i], CUDA_WAIT_ALL));
1641+
GA_CUDA_EXIT_ON_ERROR(ctx, cuda_record(y[i], CUDA_WAIT_READ));
16421642
}
16431643

16441644
cuda_exit(ctx);

0 commit comments

Comments
 (0)