1 |
commit: cb2eea1c99a890daa3713835f8552d067ecee2c7 |
2 |
Author: YiyangWu <xgreenlandforwyy <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Mar 6 14:33:37 2022 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 03:34:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb2eea1c |
7 |
|
8 |
sys-devel/llvm-roc: locate bitcode correctly |
9 |
|
10 |
This fixes clang not able to find rocm-device-libs when calling from |
11 |
rocm-comgr instead of commandline. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/830762 |
14 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
15 |
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com> |
16 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
17 |
|
18 |
sys-devel/llvm-roc/files/llvm-roc-4.3.0-hip-location.patch | 9 +++++++++ |
19 |
sys-devel/llvm-roc/files/llvm-roc-4.5.2-hip-location.patch | 9 +++++++++ |
20 |
2 files changed, 18 insertions(+) |
21 |
|
22 |
diff --git a/sys-devel/llvm-roc/files/llvm-roc-4.3.0-hip-location.patch b/sys-devel/llvm-roc/files/llvm-roc-4.3.0-hip-location.patch |
23 |
index 1fe93a33db36..f3d22b996915 100644 |
24 |
--- a/sys-devel/llvm-roc/files/llvm-roc-4.3.0-hip-location.patch |
25 |
+++ b/sys-devel/llvm-roc/files/llvm-roc-4.3.0-hip-location.patch |
26 |
@@ -143,6 +143,15 @@ Author: Yiyang Wu <xgreenlandforwyy@×××××.com> |
27 |
} |
28 |
|
29 |
RocmInstallationDetector::RocmInstallationDetector( |
30 |
+@@ -397,7 +272,7 @@ void RocmInstallationDetector::detectDev |
31 |
+ // - ${ROCM_ROOT}/lib/bitcode/* |
32 |
+ // so try to detect these layouts. |
33 |
+ static constexpr std::array<const char *, 2> SubDirsList[] = { |
34 |
+- {"amdgcn", "bitcode"}, |
35 |
++ {"lib/amdgcn", "bitcode"}, |
36 |
+ {"lib", ""}, |
37 |
+ {"lib", "bitcode"}, |
38 |
+ }; |
39 |
@@ -423,42 +298,7 @@ void RocmInstallationDetector::detectDev |
40 |
} |
41 |
|
42 |
|
43 |
diff --git a/sys-devel/llvm-roc/files/llvm-roc-4.5.2-hip-location.patch b/sys-devel/llvm-roc/files/llvm-roc-4.5.2-hip-location.patch |
44 |
index 7b5714e610a7..f6f60cfb1b0f 100644 |
45 |
--- a/sys-devel/llvm-roc/files/llvm-roc-4.5.2-hip-location.patch |
46 |
+++ b/sys-devel/llvm-roc/files/llvm-roc-4.5.2-hip-location.patch |
47 |
@@ -142,6 +142,15 @@ Author: Yiyang Wu <xgreenlandforwyy@×××××.com> |
48 |
return ROCmSearchDirs; |
49 |
} |
50 |
|
51 |
+@@ -397,7 +272,7 @@ void RocmInstallationDetector::detectDev |
52 |
+ // - ${ROCM_ROOT}/lib/bitcode/* |
53 |
+ // so try to detect these layouts. |
54 |
+ static constexpr std::array<const char *, 2> SubDirsList[] = { |
55 |
+- {"amdgcn", "bitcode"}, |
56 |
++ {"lib/amdgcn", "bitcode"}, |
57 |
+ {"lib", ""}, |
58 |
+ {"lib", "bitcode"}, |
59 |
+ }; |
60 |
@@ -424,42 +298,7 @@ |
61 |
} |