[clblas] 103/125: Always cast get_*_* to uints before casting to vectors.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository clblas.
commit 1b5b60a5e41f5e5a173beafe2ab43e2da03c1552
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Fri Feb 13 13:46:25 2015 -0500
Always cast get_*_* to uints before casting to vectors.
- Fixes issues with on intel SDKs on Windows, Apple SDKs on OSX
---
src/library/blas/gens/gemm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/library/blas/gens/gemm.c b/src/library/blas/gens/gemm.c
index a5b8377..efa2375 100644
--- a/src/library/blas/gens/gemm.c
+++ b/src/library/blas/gens/gemm.c
@@ -560,7 +560,7 @@ blockGen(
kgenAddStmt(ctx, tmp);
}
else {
- sprintf(globalIdB, "get_global_id(%d)", 1-i);
+ sprintf(globalIdB, "(uint)get_global_id(%d)", 1-i);
}
if (!(isColMajA || isColMajB)) {
@@ -758,7 +758,7 @@ subgGen(
vecLenA = gset.tileA.vecLen;
// channel offset based coordinate
- ksprintf(&exprK, "( get_group_id(0)*%lu + k )", staggered/vecLenA*vecLenA);
+ ksprintf(&exprK, "( (uint)(get_group_id(0))*%lu + k )", staggered/vecLenA*vecLenA);
// starting code generation--------------------------------------------------
pCtx = createKgenContext(pBuf, buflen, true);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git
More information about the debian-science-commits
mailing list