clMathLibraries / clBLAS

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

clBLAS aborts when backend is OpenCL 1.1 #343

Open zwets opened 5 years ago

zwets commented 5 years ago

Executing any of the clblasSgemm() functions in libclBLAS aborts the calling program with this error:

OpenCL error -11 [...] 
clblas-2.12/src/library/blas/xgemm.cc:244: void makeGemmKernel(_cl_kernel**, cl_command_queue, const char*, const char*, const unsigned char**, size_t*, const char*): Assertion `false' failed.

This occurs for OpenCL 1.1 backends only. It is caused by the -cl-std=CL1.2 build option being passed to makeGemmKernel(). I have submitted PR #342 which resolves this issue.