[clang] [Clang][AMDGPU] Search TheRock-based device libraries (PR #170590)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 3 18:22:34 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:
"clang -print-resource-dir" will get you up to the amdgcn directory.
https://github.com/llvm/llvm-project/pull/170590
More information about the cfe-commits
mailing list