File 0001-rocm-compilersupport-force-hip-runtime-detection.patch of Package rocm-compilersupport

From 92e9587663055c40c111fd4c7b37a4fa42884556 Mon Sep 17 00:00:00 2001
From: Tom Rix <Tom.Rix@amd.com>
Date: Thu, 18 Sep 2025 10:55:43 -0700
Subject: [PATCH] rocm-compilersupport force hip runtime detection

---
 clang/lib/Driver/ToolChains/AMDGPU.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/clang/lib/Driver/ToolChains/AMDGPU.cpp b/clang/lib/Driver/ToolChains/AMDGPU.cpp
index 798ea8aad6de..8ef086c61066 100644
--- a/clang/lib/Driver/ToolChains/AMDGPU.cpp
+++ b/clang/lib/Driver/ToolChains/AMDGPU.cpp
@@ -455,6 +455,9 @@ void RocmInstallationDetector::detectHIPRuntime() {
     if (!HIPPathEnv->empty())
       HIPSearchDirs.emplace_back(std::move(*HIPPathEnv));
   }
+#if 1
+    HasHIPRuntime = true;
+#else
   if (HIPSearchDirs.empty())
     HIPSearchDirs.append(getInstallationPathCandidates());
   auto &FS = D.getVFS();
@@ -517,6 +520,7 @@ void RocmInstallationDetector::detectHIPRuntime() {
     }
   }
   HasHIPRuntime = false;
+#endif
 }
 
 void RocmInstallationDetector::print(raw_ostream &OS) const {
-- 
2.51.0

openSUSE Build Service is sponsored by