summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiyang Wu <xgreenlandforwyy@gmail.com>2022-06-15 20:42:07 +0800
committerBenda Xu <heroxbd@gentoo.org>2022-08-06 22:22:03 +0800
commit82a6c2ca05ccf2dad8cbd75a813d6deafe4f105f (patch)
treeb0191fecd03e91146710d6be86041ddcf54e4953 /dev-util/hip/files/hip-5.1.3-rocm-path.patch
parentdev-libs/rocm-comgr: add 5.1.3 (diff)
downloadgentoo-82a6c2ca05ccf2dad8cbd75a813d6deafe4f105f.tar.gz
gentoo-82a6c2ca05ccf2dad8cbd75a813d6deafe4f105f.tar.bz2
gentoo-82a6c2ca05ccf2dad8cbd75a813d6deafe4f105f.zip
dev-util/hip: add 5.1.3
Switch from llvm-roc to vanilla clang -- New variables about clang path in hipvars.pm hip-5.1.3-clang-include-path.patch to fix hipcc finding clang hip-5.1.3-rocm-path.patch: add compile flag to support unpatched clang Using sed cmd to fix clang header location in cmake Closes: https://bugs.gentoo.org/851702 Reference: https://github.com/ROCm-Developer-Tools/hipamd/issues/18 Reference: https://github.com/ROCm-Developer-Tools/hipamd/issues/27 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/hip/files/hip-5.1.3-rocm-path.patch')
-rw-r--r--dev-util/hip/files/hip-5.1.3-rocm-path.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/hip/files/hip-5.1.3-rocm-path.patch b/dev-util/hip/files/hip-5.1.3-rocm-path.patch
new file mode 100644
index 000000000000..2ce68b733577
--- /dev/null
+++ b/dev-util/hip/files/hip-5.1.3-rocm-path.patch
@@ -0,0 +1,13 @@
+explicitly specify `--rocm-path=/usr` because clang does not list
+it among the default paths
+===================================================================
+--- HIP-rocm-5.1.3.orig/bin/hipcc.pl
++++ HIP-rocm-5.1.3/bin/hipcc.pl
+@@ -696,6 +696,7 @@ if ($HIP_PLATFORM eq "amd") {
+
+ if ($hasHIP) {
+ if ($DEVICE_LIB_PATH ne "$ROCM_PATH/amdgcn/bitcode") {
++ $HIPCXXFLAGS .= " --rocm-path=\"$ROCM_PATH\"";
+ $HIPCXXFLAGS .= " --hip-device-lib-path=\"$DEVICE_LIB_PATH\"";
+ }
+ $HIPCXXFLAGS .= " -fhip-new-launch-api";