Skip to content

Commit 56f7957

Browse files
committed
fix hard-coding of opencl version to 2.0; fix 1d initialization of 2d arrays.
1 parent 75b0f92 commit 56f7957

29 files changed

+30
-29
lines changed

src/library/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ set(CLBLAS_ALL_SOURCES
851851
#${USERGEMM_SRC}
852852
#${USERGEMM_HEADERS}
853853
)
854+
add_definitions(-DOPENCL_VERSION="${OPENCL_VERSION}")
854855
add_library(clBLAS ${CLBLAS_ALL_SOURCES})
855856
add_dependencies(clBLAS GENERATE_CLT)
856857

src/library/blas/AutoGemm/UserGemmKernelSources/UserGemmKernelSourceIncludes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
//**** compiler flags
1111
//**** online compilation flags
12-
const char * const User_srcBuildOptions = "-cl-std=CL2.0";
13-
const char * const User_binBuildOptions = "-cl-std=CL2.0";
12+
const char * const User_srcBuildOptions = "-cl-std=CL" OPENCL_VERSION;
13+
const char * const User_binBuildOptions = "-cl-std=CL" OPENCL_VERSION;
1414

1515

1616
extern const unsigned int sgemm_Col_NT_B1_MX032_NX064_KX16_ROW_workGroupNumRows;

src/library/blas/AutoGemm/UserGemmKernelSources/dgemm_Col_NN_B0_MX048_NX048_KX08_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ __kernel void dgemm_Col_NN_B0_MX048_NX048_KX08 (
9696
C += offsetC;
9797

9898

99-
double rC[6][6] = {(double)0};
99+
double rC[6][6] = { {(double)0} };
100100
double rA[6];
101101
double rB[6];
102102
__local double lA[392];

src/library/blas/AutoGemm/UserGemmKernelSources/dgemm_Col_NN_B1_MX048_NX048_KX08_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ __kernel void dgemm_Col_NN_B1_MX048_NX048_KX08 (
9494
C += offsetC;
9595

9696

97-
double rC[6][6] = {(double)0};
97+
double rC[6][6] = { {(double)0} };
9898
double rA[6];
9999
double rB[6];
100100

src/library/blas/AutoGemm/UserGemmKernelSources/dgemm_Col_NT_B0_MX048_NX048_KX08_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const char * const dgemm_Col_NT_B0_MX048_NX048_KX08_src = STRINGIFY(
108108
\n C += offsetC;
109109
\n
110110
\n
111-
\n double rC[6][6] = {(double)0};
111+
\n double rC[6][6] = { {(double)0} };
112112
\n double rA[6];
113113
\n double rB[6];
114114
\n

src/library/blas/AutoGemm/UserGemmKernelSources/dgemm_Col_NT_B1_MX048_NX048_KX08_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const char * const dgemm_Col_NT_B1_MX048_NX048_KX08_src = STRINGIFY(
107107
\n C += offsetC;
108108
\n
109109
\n
110-
\n double rC[6][6] = {(double)0};
110+
\n double rC[6][6] = { {(double)0} };
111111
\n double rA[6];
112112
\n double rB[6];
113113
\n

src/library/blas/AutoGemm/UserGemmKernelSources/dgemm_Col_TN_B0_MX048_NX048_KX08_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ __kernel void dgemm_Col_TN_B0_MX048_NX048_KX08_src (
3636
uint const offsetB,
3737
uint const offsetC )
3838
{
39-
double rC[6][6] = {(double)0};
39+
double rC[6][6] = { {(double)0} };
4040
double rA[1][6];
4141
double rB[1][6];
4242

src/library/blas/AutoGemm/UserGemmKernelSources/dgemm_Col_TN_B1_MX048_NX048_KX08_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ __kernel void dgemm_Col_TN_B1_MX048_NX048_KX08_src (
3636
uint const offsetB,
3737
uint const offsetC )
3838
{
39-
double rC[6][6] = {(double)0};
39+
double rC[6][6] = { {(double)0} };
4040
double rA[1][6];
4141
double rB[1][6];
4242

src/library/blas/AutoGemm/UserGemmKernelSources/sgemm_Col_NN_B0_MX032_NX032_KX16_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ __kernel void sgemm_Col_NN_B0_MX032_NX032_KX16 (
4949
uint offsetB,
5050
uint offsetC)
5151
{
52-
float rC[2][2] = {(float)0};
52+
float rC[2][2] = { {(float)0} };
5353
float rA[1][2];
5454
float rB[1][2];
5555

src/library/blas/AutoGemm/UserGemmKernelSources/sgemm_Col_NN_B0_MX064_NX064_KX16_src.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ __kernel void sgemm_Col_NN_B0_MX064_NX064_KX16 (
6565
uint offsetB,
6666
uint offsetC)
6767
{
68-
float rC[4][4] = {(float)0};
68+
float rC[4][4] = { {(float)0} };
6969
float rA[1][4];
7070
float rB[1][4];
7171

0 commit comments

Comments
 (0)