clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL
Apache License 2.0
839 stars 240 forks source link

xgemm compilation error #195

Closed MajorBreakfast closed 8 years ago

MajorBreakfast commented 8 years ago

I get the following on a non-AMD card:

<kernel>:1:369: error: array initializer must be an initializer list

sgemm_Col_NT_B1_MX032_NX032_KX16_SINGLE_src.cpp and many others contain:

float rC[2][2] = { (float)0 };

To fix it:

float rC[2][2] = {{ (float)0 }};

Same goes for the double versions.

pavanky commented 8 years ago

@MajorBreakfast This is a problem in master, but it's been resovled in develop as far as I can tell. Can you verify this ? If so we can close the issue.

MajorBreakfast commented 8 years ago

I peeked at the code and this seems to be the case. I'll reopen if I've any further problems with this. Thx!