[clang] [Clang][AMDGPU] Search TheRock-based device libraries (PR #170590)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 3 18:14:21 PST 2025
================
@@ -436,15 +436,21 @@ void RocmInstallationDetector::detectDeviceLibrary() {
if (HasDeviceLibrary)
return;
- // Find device libraries in a legacy ROCm directory structure
- // ${ROCM_ROOT}/amdgcn/bitcode/*
+ // Find device libraries in a ROCm directory structure
auto &ROCmDirs = getInstallationPathCandidates();
for (const auto &Candidate : ROCmDirs) {
+ // Legacy: ${ROCM_PATH}/amdgcn/bitcode/*
----------------
b-sumner wrote:
The true path is $ROCM/lib/llvm/lib/clang/NN/amdgcn/bitcode . I'm not clear on the reason for moving it.
https://github.com/llvm/llvm-project/pull/170590
More information about the cfe-commits
mailing list