[clang] [flang] [Flang][AMDGPU] Add rocm-path flag (PR #88190)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 11 08:18:22 PDT 2024
================
@@ -345,7 +345,13 @@ void Flang::AddAMDGPUTargetArgs(const ArgList &Args,
// Check ROCm path if specified
const ToolChain &TC = getToolChain();
- TC.getDeviceLibs(Args);
+ std::string HIPVersion;
+ llvm::raw_string_ostream HIPInfo(HIPVersion);
+ TC.printVerboseInfo(HIPInfo);
+ llvm::StringRef HIPInfoStrRef(HIPInfo.str());
+ if (!HIPInfoStrRef.contains("Found HIP installation") &&
----------------
jhuber6 wrote:
Do you know where clang emits that diagnostic? I'd assume it would be done during ROCm detection.
https://github.com/llvm/llvm-project/pull/88190
More information about the cfe-commits
mailing list