clMathLibraries / clBLAS

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

make fails at linking #122

Closed Alessandro-Barbieri closed 8 years ago

Alessandro-Barbieri commented 9 years ago

I'm trying to compile clblas on Debian, but fails at linking

https://gist.github.com/Alessandro-Barbieri/9a808ac4d2f65eb3402f#file-gistfile1-txt

TimmyLiu commented 9 years ago

I think your error message "riferimento non definito a "clEnqueueFillBuffer"" means "undefined reference to "clEnqueueFillBuffer" " in English? clEnqueueFillBuffer is new in OpenCL 1.2 and later. Are you building with OpenCL 1.1?

Alessandro-Barbieri commented 9 years ago

Yes, is undefined reference and sadly I'm using libopencl1 340.65-2 from nvidia and it states

This package contains the ICD Loader library provided by NVIDIA. This library supports OpenCL 1.1 only.

TimmyLiu commented 9 years ago

I am afraid OpenCL 1.2 headers are required now. Looks later versions of Nvidia driver supports OpenCL 1.2. Refer to issue #117 for workaround if it still does not work for you.

hughperkins commented 8 years ago

Note that whilst I think that as an AMD project, it's fairly reasonable to use the latest versions of OpenCL, I reckon that it could be good to:

Of course, it will still stop working on devices that dont support 1.2, but at least it will be less surprising.

TimmyLiu commented 8 years ago

As indicated by issue #176 CUDA 7.5 now ships with OpenCL 1.2 header files. This issue can be closed.