[clang] [Clang][AMDGPU] Search TheRock-based device libraries (PR #170590)
Tsukasa OI via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 4 00:30:22 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/*
----------------
a4lg wrote:
@b-summer Wait, in my environment (ROCm 7.1.0), I only find device libraries at `/opt/rocm/amdgcn/bitcode`. Am I missing something?
https://github.com/llvm/llvm-project/pull/170590
More information about the cfe-commits
mailing list