[clblas] 65/67: fix 'array initializer must be an initializer list', https://github.com/clMathLibraries/clBLAS/issues/153
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Oct 27 08:02:17 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 16744bfaab93bd63ec66cf4facf08023b5c3ae90
Author: Hugh Perkins <hughperkins at gmail.com>
Date: Wed Oct 21 21:42:09 2015 +0800
fix 'array initializer must be an initializer list', https://github.com/clMathLibraries/clBLAS/issues/153
---
src/library/blas/AutoGemm/KernelOpenCL.py | 2 +-
src/library/blas/gens/clTemplates/zgemm_gcn.cl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/library/blas/AutoGemm/KernelOpenCL.py b/src/library/blas/AutoGemm/KernelOpenCL.py
index 03f5a8c..3dc80fd 100644
--- a/src/library/blas/AutoGemm/KernelOpenCL.py
+++ b/src/library/blas/AutoGemm/KernelOpenCL.py
@@ -218,7 +218,7 @@ def makeOpenCLKernelString(kernel):
kStr += endLine
kStr += (
" /* allocate registers */" + endLine +
- " DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = {0};" + endLine +
+ " DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = { {0} };" + endLine +
" DATA_TYPE_STR rA[MICRO_TILE_NUM_ROWS];" + endLine +
" DATA_TYPE_STR rB[MICRO_TILE_NUM_COLS];" + endLine )
diff --git a/src/library/blas/gens/clTemplates/zgemm_gcn.cl b/src/library/blas/gens/clTemplates/zgemm_gcn.cl
index 1769639..ad04525 100644
--- a/src/library/blas/gens/clTemplates/zgemm_gcn.cl
+++ b/src/library/blas/gens/clTemplates/zgemm_gcn.cl
@@ -210,7 +210,7 @@ __kernel void KERNEL_NAME(DATA_TYPE_CHAR,TRANSPOSE_A,TRANSPOSE_B,MACRO_TILE_NUM_
C += offsetC;
// registers
- DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = {0};
+ DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = { {0} };
DATA_TYPE_STR rA[MICRO_TILE_NUM_ROWS];
DATA_TYPE_STR rB[MICRO_TILE_NUM_COLS];
--
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