Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

[Build error] Unable to find OpenCL includes #15

Open
tpkessler opened this issue Jul 19, 2020 · 1 comment
Open

[Build error] Unable to find OpenCL includes #15

tpkessler opened this issue Jul 19, 2020 · 1 comment

Comments

@tpkessler
Copy link

tpkessler commented Jul 19, 2020

I'm using Arch Linux with cmake 3.18 and I'm unable to build ROCclr with the current build instructions / CMakeLists.txt. The problem seems to be that find_library also looks for a library in /opt/rocm which is not present of course as ROCm OpenCL Runtime needs ROCclr. Moreover, ROCclr only needs the include files from OpenCL, not the full package.
I successfully build ROCclr with the patched CMakeLists.txt from my PR #16 .

@baryluk
Copy link

baryluk commented Oct 5, 2020

Did you try setting -DCMAKE_PREFIX_PATH instead?

I had a success building ROCclr this way.

I think there are some extensions in ROCm OpenCL Runtime library code that is not present in upstream Khronos code, so that is why it uses AMD's headers and code right now.

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

No branches or pull requests

2 participants