We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 884c8da commit 1b5b60aCopy full SHA for 1b5b60a
src/library/blas/gens/gemm.c
@@ -560,7 +560,7 @@ blockGen(
560
kgenAddStmt(ctx, tmp);
561
}
562
else {
563
- sprintf(globalIdB, "get_global_id(%d)", 1-i);
+ sprintf(globalIdB, "(uint)get_global_id(%d)", 1-i);
564
565
566
if (!(isColMajA || isColMajB)) {
@@ -758,7 +758,7 @@ subgGen(
758
vecLenA = gset.tileA.vecLen;
759
760
// channel offset based coordinate
761
- ksprintf(&exprK, "( get_group_id(0)*%lu + k )", staggered/vecLenA*vecLenA);
+ ksprintf(&exprK, "( (uint)(get_group_id(0))*%lu + k )", staggered/vecLenA*vecLenA);
762
763
// starting code generation--------------------------------------------------
764
pCtx = createKgenContext(pBuf, buflen, true);
0 commit comments