Skip to content

Commit 9b7dd73

Browse files
committed
[srock] build offload-arch, amdgpu-arch, and nvptx-arch
1 parent aec4a61 commit 9b7dd73

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

srock-bin/patches/amd-staging/_TheRock.patch

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt
2-
index 4df4bca..12fe8e3 100644
2+
index 4df4bcab..52569d0f 100644
33
--- a/compiler/CMakeLists.txt
44
+++ b/compiler/CMakeLists.txt
55
@@ -10,6 +10,10 @@ if(THEROCK_ENABLE_COMPILER)
@@ -13,12 +13,13 @@ index 4df4bca..12fe8e3 100644
1313

1414
# If the compiler is not pristine (i.e. has patches), then there will be a
1515
# ".amd-llvm.smrev" file present which must be used instead of the auto
16-
@@ -67,7 +71,16 @@ if(THEROCK_ENABLE_COMPILER)
16+
@@ -67,7 +71,17 @@ if(THEROCK_ENABLE_COMPILER)
1717
-DCLANG_ENABLE_STATIC_ANALYZER=OFF
1818
-DCLANG_ENABLE_CLANGD=OFF
1919
-DCLANG_TIDY_ENABLE_STATIC_ANALYZER=OFF
2020
-
2121
+ -DCLANG_TOOL_CLANG_LINKER_WRAPPER_BUILD=ON
22+
+ -DCLANG_TOOL_OFFLOAD_ARCH_BUILD=ON
2223
+ -DOPENMP_ENABLE_LIBOMPTARGET=ON
2324
+ -DLIBOMPTARGET_BUILD_DEVICE_FORTRT=ON
2425
+ -DOFFLOAD_EXTERNAL_PROJECT_UNIFIED_ROCR=ON
@@ -32,7 +33,7 @@ index 4df4bca..12fe8e3 100644
3233
# Note that building AMDGPU ASAN extensions depends on various runtime headers
3334
# (since it instruments them). These paths must line up and will be an error
3435
diff --git a/compiler/artifact-amd-llvm.toml b/compiler/artifact-amd-llvm.toml
35-
index b0645eb..54755ad 100644
36+
index b0645ebe..54755ad2 100644
3637
--- a/compiler/artifact-amd-llvm.toml
3738
+++ b/compiler/artifact-amd-llvm.toml
3839
@@ -7,6 +7,7 @@ unmatched_exclude = [
@@ -44,7 +45,7 @@ index b0645eb..54755ad 100644
4445

4546
# LLVM deviates from the defaults in some key ways:
4647
diff --git a/compiler/pre_hook_amd-llvm.cmake b/compiler/pre_hook_amd-llvm.cmake
47-
index 0b457d6..156f31d 100644
48+
index 0b457d61..38973bd7 100644
4849
--- a/compiler/pre_hook_amd-llvm.cmake
4950
+++ b/compiler/pre_hook_amd-llvm.cmake
5051
@@ -13,7 +13,7 @@ if(WIN32)
@@ -77,8 +78,16 @@ index 0b457d6..156f31d 100644
7778

7879
# Setup the install rpath (let CMake handle build RPATH per usual):
7980
# * Executables and libraries can always search their adjacent lib directory
81+
@@ -154,6 +155,7 @@ block()
82+
CLANG_OFFLOAD_PACKAGER
83+
CLANG_OFFLOAD_WRAPPER
84+
CLANG_LINKER_WRAPPER
85+
+ OFFLOAD_ARCH
86+
CLANG_SHLIB
87+
DRIVER
88+
)
8089
diff --git a/math-libs/BLAS/pre_hook_hipSPARSE.cmake b/math-libs/BLAS/pre_hook_hipSPARSE.cmake
81-
index e0b10dd..190b51c 100644
90+
index e0b10dd5..190b51c8 100644
8291
--- a/math-libs/BLAS/pre_hook_hipSPARSE.cmake
8392
+++ b/math-libs/BLAS/pre_hook_hipSPARSE.cmake
8493
@@ -1,6 +1,6 @@
@@ -93,7 +102,7 @@ index e0b10dd..190b51c 100644
93102
+# DESTINATION "clients"
94103
+#)
95104
diff --git a/math-libs/BLAS/pre_hook_rocSPARSE.cmake b/math-libs/BLAS/pre_hook_rocSPARSE.cmake
96-
index 697bba2..3856a68 100644
105+
index 697bba2b..3856a68c 100644
97106
--- a/math-libs/BLAS/pre_hook_rocSPARSE.cmake
98107
+++ b/math-libs/BLAS/pre_hook_rocSPARSE.cmake
99108
@@ -11,7 +11,7 @@ endif()
@@ -109,7 +118,7 @@ index 697bba2..3856a68 100644
109118
+# DESTINATION "clients"
110119
+#)
111120
diff --git a/profiler/CMakeLists.txt b/profiler/CMakeLists.txt
112-
index 29b9a40..6947a64 100644
121+
index 29b9a404..6947a640 100644
113122
--- a/profiler/CMakeLists.txt
114123
+++ b/profiler/CMakeLists.txt
115124
@@ -50,10 +50,15 @@ if(THEROCK_ENABLE_ROCPROFV3)

0 commit comments

Comments
 (0)