llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

clang detectHIPRuntime broken on Fedora,RHEL,SUSE distros

Open trixirt opened this issue 3 months ago • 0 comments

These distro's package the hip runtime different from the AMD packages. The implied ROCM_PATH and HIP_PATH are both the system directory /usr The hidden file in the AMD package .hipVersion can not be installed to /usr So this use to find the hip runtime is broken https://github.com/ROCm/llvm-project/blob/amd-staging/clang/lib/Driver/ToolChains/AMDGPU.cpp#L490

The hip runtime and other rocm packages should have top level cmake options that allow the user to set these value at runtime. For the distro install, these values will be variable per disto but static, well known values.

trixirt avatar Sep 18 '25 19:09 trixirt