@@ -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
447447static 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