Skip to content

Commit 438c478

Browse files
authored
Merge pull request #444 from obilaniu/silencewarnings
[Trivial] Silence Warnings
2 parents 27e0aff + ed300e3 commit 438c478

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/gpuarray_array_blas.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ int GpuArray_rgemm(cb_transpose transA, cb_transpose transB, double alpha,
217217
return GA_INVALID_ERROR;
218218

219219
if (A->nd != 2 || B->nd != 2 || C->nd != 2 ||
220-
A->typecode != A->typecode || B->typecode != A->typecode ||
220+
B->typecode != A->typecode ||
221221
C->typecode != A->typecode)
222222
return GA_VALUE_ERROR;
223223

@@ -367,7 +367,7 @@ int GpuArray_rger(double alpha, GpuArray *X, GpuArray *Y, GpuArray *A,
367367
return GA_INVALID_ERROR;
368368

369369
if (X->nd != 1 || Y->nd != 1 || A->nd != 2 ||
370-
X->typecode != X->typecode || Y->typecode != X->typecode ||
370+
Y->typecode != X->typecode ||
371371
A->typecode != X->typecode)
372372
return GA_VALUE_ERROR;
373373

@@ -445,7 +445,7 @@ int GpuArray_rger(double alpha, GpuArray *X, GpuArray *Y, GpuArray *A,
445445
}
446446

447447
static inline int is_last_2d_contiguous(const GpuArray *a) {
448-
size_t size = GpuArray_ITEMSIZE(a);
448+
ssize_t size = GpuArray_ITEMSIZE(a);
449449

450450
if (GpuArray_IS_C_CONTIGUOUS(a))
451451
return 1; // C contiguous
@@ -483,7 +483,7 @@ int GpuArray_rgemmBatch_3d(cb_transpose transA, cb_transpose transB, double alph
483483
return GA_INVALID_ERROR;
484484

485485
if (A->nd != 3 || B->nd != 3 || C->nd != 3 ||
486-
A->typecode != A->typecode || B->typecode != A->typecode ||
486+
B->typecode != A->typecode ||
487487
C->typecode != A->typecode)
488488
return GA_VALUE_ERROR;
489489

0 commit comments

Comments
 (0)