llvm-project
llvm-project copied to clipboard
clang detectHIPRuntime broken on Fedora,RHEL,SUSE distros
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.