Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking on Linux? #4

Open
remexre opened this issue Aug 3, 2016 · 1 comment
Open

Linking on Linux? #4

remexre opened this issue Aug 3, 2016 · 1 comment

Comments

@remexre
Copy link

remexre commented Aug 3, 2016

When building, /usr/bin/ld: cannot find -lCL.

$ locate libCL # No results
$ locate libOpenCL                                             
/opt/intel/opencl/libOpenCL.so
/opt/intel/opencl/libOpenCL.so.1
/opt/intel/opencl-runtime/lib64/libOpenCL.so
/opt/intel/opencl-runtime/lib64/libOpenCL.so.1
/opt/intel/opencl-runtime/lib64/libOpenCL.so.2.0
/usr/lib/libOpenCL.so
/usr/lib/libOpenCL.so.1
/usr/lib/libOpenCL.so.1.0.0
@notnot
Copy link

notnot commented May 8, 2017

I encountered this issue as well.. A quick fix is to update package.go, replace the line

#cgo linux LDFLAGS: -lCL

with

#cgo linux LDFLAGS: -lOpenCL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants