Skip to content

Commit 91d9177

Browse files
committed
fixing gpuarray_array_blas.c, C_OFFSET value comparison with NULL, fixing GpuArrayException: ('malloc: Resource temporarily unavailable', 6) @shawntan
1 parent beece71 commit 91d9177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpuarray_array_blas.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ int GpuArray_rgemmBatch_3d(cb_transpose transA, cb_transpose transB, double alph
663663
C_offsets = (size_t*)malloc(batchCount * sizeof(size_t));
664664

665665
if (A_datas == NULL || B_datas == NULL || C_datas == NULL ||
666-
A_offsets == NULL || B_offsets == NULL || C_offsets) {
666+
A_offsets == NULL || B_offsets == NULL || C_offsets == NULL) {
667667
err = error_sys(ctx->err, "malloc");
668668
goto old_cleanup;
669669
}

0 commit comments

Comments
 (0)