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

Cmake find library issue #49

Open
nerdralph opened this issue Jan 21, 2018 · 3 comments
Open

Cmake find library issue #49

nerdralph opened this issue Jan 21, 2018 · 3 comments

Comments

@nerdralph
Copy link

Cmake doesn't find OpenCL with AMDGPU-pro.
As a hack/workaround I added the lib path to the find_library hints:
/opt/amdgpu-pro/lib/x86_64-linux-gnu/

I came across lots of bug reports about Cmake multiarch issues, but it's not clear what the "correct" solution is.

@hjmallon
Copy link
Contributor

Does using the default CMake finder fix things for you. See #45

@nerdralph
Copy link
Author

I tried find_package(OpenCL), but that didn't work. I'm not a cmake fan, so it's still possible it could work with more changes. I'm using cmake 3.5.1 on Ubuntu 16.04.

@hjmallon
Copy link
Contributor

Yeah. Sorry I haven't used AMDGPU-pro. Seems that path isn't included in the OpenCL module in cmake. https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/FindOpenCL.cmake

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