https://bugzilla.redhat.com/show_bug.cgi?id=2209759
--- Comment #15 from Jeremy Newton alexjnewt@fastmail.com ---
Also rocm-opencl should probably require rocm-device-libs anyway.
How come? I don't see any code paths in OpenCL requiring it at all. Hip needs it because of hipcc as far as I know and rocm-device-libs is used generally during compilation. In other words, rocm-device-libs is not a runtime dependency, only build time.
Where does clang search for this by default?
I was actually trying to figure that out, as I'm a bit unfamiliar with the code. I see this:
https://github.com/llvm/llvm-project/blob/release/16.x/clang/lib/Driver/Tool... and https://github.com/llvm/llvm-project/blob/release/16.x/clang/lib/Driver/Tool...
The whole thing looks a bit opaque to me, so feel free to help out :)
- rocm-device-libs
follow what libomp does and use Requires: clang-resource-filesystem%{?isa} = %{version} to install amdgcn/bitcode into clang's resource dir lib/
Sure I'm ok with this if Tom Stellar is willing to help out with the LLVM patching side. Or I can also reach out to rocm device libs upstream to see if they can guide me towards making a patch that they're ok with.