Skip to content

Commit

Permalink
fix 'array initializer must be an initializer list', clMathLibraries#153
Browse files Browse the repository at this point in the history
  • Loading branch information
hughperkins committed Oct 21, 2015
1 parent 16973bf commit 16744bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/library/blas/AutoGemm/KernelOpenCL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

Expand Down
2 changes: 1 addition & 1 deletion src/library/blas/gens/clTemplates/zgemm_gcn.cl
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 16744bf

Please sign in to comment.