[flang-commits] [clang] [flang] [Flang][AMDGPU] Add rocm-path flag (PR #88190)

Dominik Adamski via flang-commits flang-commits at lists.llvm.org
Tue Apr 9 14:04:11 PDT 2024


================
@@ -342,6 +342,10 @@ void Flang::AddAMDGPUTargetArgs(const ArgList &Args,
     StringRef Val = A->getValue();
     CmdArgs.push_back(Args.MakeArgString("-mcode-object-version=" + Val));
   }
+
+  // Check ROCm path if specified
+  const ToolChain &TC = getToolChain();
+  TC.getDeviceLibs(Args);
----------------
DominikAdamski wrote:

I need it to invoke  `AMDGPUOpenMPToolChain::getDeviceLibs` to check if specified ROCm path is correct.

https://github.com/llvm/llvm-project/pull/88190


More information about the flang-commits mailing list