public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocm-compilersupport] rawhide: Fix preview hipcc
@ 2026-08-28 19:33 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-08-28 19:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rocm-compilersupport
Branch : rawhide
Commit : 75f68fc57274a70d7628216db30b6c03590a5691
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-08-28T12:32:42-07:00
Stats : +43/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rocm-compilersupport/c/75f68fc57274a70d7628216db30b6c03590a5691?branch=rawhide
Log:
Fix preview hipcc
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/0001-hipcc-fix-path.patch b/0001-hipcc-fix-path.patch
new file mode 100644
index 0000000..860ca20
--- /dev/null
+++ b/0001-hipcc-fix-path.patch
@@ -0,0 +1,40 @@
+From 454489de69538a3f4b102a4fd11230299c2b1205 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Fri, 28 Aug 2026 06:54:40 -0700
+Subject: [PATCH] hipcc fix path
+
+---
+ amd/hipcc/src/hipBin_amd.h | 3 ++-
+ amd/hipcc/src/hipBin_base.h | 2 +-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/amd/hipcc/src/hipBin_amd.h b/amd/hipcc/src/hipBin_amd.h
+index 90490b29a18e..bb5393cbb00d 100644
+--- a/amd/hipcc/src/hipBin_amd.h
++++ b/amd/hipcc/src/hipBin_amd.h
+@@ -203,7 +203,8 @@ void HipBinAmd::constructCompilerPath() {
+ fs::path hipClangPath;
+ compilerPath = getRoccmPath();
+ hipClangPath = compilerPath;
+- hipClangPath /= "lib";
++ hipClangPath /= "lib64";
++ hipClangPath /= "rocm";
+ hipClangPath /= "llvm";
+ hipClangPath /= "bin";
+ compilerPath = hipClangPath.string();
+diff --git a/amd/hipcc/src/hipBin_base.h b/amd/hipcc/src/hipBin_base.h
+index 1d2f043e9558..158ec406cab8 100644
+--- a/amd/hipcc/src/hipBin_base.h
++++ b/amd/hipcc/src/hipBin_base.h
+@@ -336,7 +336,7 @@ void HipBinBase::constructHipPath() {
+ fs::path parent_path = full_path.parent_path();
+
+ // Next, check for `../lib/llvm/bin/`, the standard ROCm install structure.
+- fs::path llvm_path = parent_path / "lib" / "llvm" / "bin";
++ fs::path llvm_path = parent_path / "lib64" / "rocm" / "llvm" / "bin";
+ if (fs::exists(llvm_path)) {
+ variables_.hipPathEnv_ = parent_path.string();
+ return;
+--
+2.55.0
+
diff --git a/rocm-compilersupport.spec b/rocm-compilersupport.spec
index 8d38f36..317d43c 100644
--- a/rocm-compilersupport.spec
+++ b/rocm-compilersupport.spec
@@ -180,6 +180,9 @@ Patch5: 0001-lld-workaround-.gnu.version-change.patch
Patch6: 0001-clang-23-link-libamdhip64.patch
Patch7: 0001-libcxx-noinline-workaround.patch
Patch8: 0001-rocm-llvm-workaround-__noinline__.patch
+%if %{with preview}
+Patch9: 0001-hipcc-fix-path.patch
+%endif
BuildRequires: cmake
%if 0%{?fedora} || 0%{?suse_version}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-28 19:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 19:33 [rpms/rocm-compilersupport] rawhide: Fix preview hipcc Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox