Skip to content

Commit 2627647

Browse files
committed
merge aomp-dev into amd-staging
2 parents 6d48175 + f7b1b42 commit 2627647

2 files changed

Lines changed: 35 additions & 11 deletions

File tree

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

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
diff --git a/cmake/therock_subproject.cmake b/cmake/therock_subproject.cmake
2-
index 3985c872..d5ebc862 100644
2+
index 4edea369..4cc2d16b 100644
33
--- a/cmake/therock_subproject.cmake
44
+++ b/cmake/therock_subproject.cmake
5-
@@ -1429,6 +1429,7 @@ function(_therock_cmake_subproject_setup_toolchain
5+
@@ -23,7 +23,7 @@ set_property(GLOBAL PROPERTY THEROCK_DEFAULT_CMAKE_VARS
6+
THEROCK_ROCM_LIBRARIES_SOURCE_DIR
7+
THEROCK_ROCM_SYSTEMS_SOURCE_DIR
8+
THEROCK_BUILD_TESTING
9+
- THEROCK_ENABLE_LLVM_TESTS
10+
+ THEROCK_BUILD_LLVM_TESTS
11+
LLVM_LIT_ARGS
12+
THEROCK_USE_SAFE_DEPENDENCY_PROVIDER
13+
ROCM_SYMLINK_LIBS
14+
@@ -1466,6 +1466,7 @@ function(_therock_cmake_subproject_setup_toolchain
615
string(APPEND _toolchain_contents "set(AMDGPU_TARGETS @_filtered_gpu_targets@ CACHE STRING \"From super-project\" FORCE)\n")
716
string(APPEND _toolchain_contents "set(GPU_TARGETS @_filtered_gpu_targets@ CACHE STRING \"From super-project\" FORCE)\n")
817
string(APPEND _toolchain_contents "set(CMAKE_HIP_ARCHITECTURES @_filtered_gpu_targets@ CACHE STRING \"From super-project\" FORCE)\n")
@@ -11,7 +20,7 @@ index 3985c872..d5ebc862 100644
1120

1221
# General settings applicable to all toolchains.
1322
diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt
14-
index eee0b5d5..dfabe601 100644
23+
index bf625919..31c4ceb5 100644
1524
--- a/compiler/CMakeLists.txt
1625
+++ b/compiler/CMakeLists.txt
1726
@@ -13,6 +13,10 @@ if(THEROCK_ENABLE_COMPILER)
@@ -25,16 +34,31 @@ index eee0b5d5..dfabe601 100644
2534

2635
# Building Flang is very memory-intensive on systems with many cores. Allow
2736
# users to specify the level of concurrency for these tasks so they can
28-
@@ -74,6 +78,9 @@ if(THEROCK_ENABLE_COMPILER)
37+
@@ -73,7 +77,10 @@ if(THEROCK_ENABLE_COMPILER)
38+
-DLIBCXXABI_ENABLE_STATIC=ON
2939

3040
# Features
31-
-DLLVM_INCLUDE_TESTS=${THEROCK_ENABLE_LLVM_TESTS}
32-
+ -DLLVM_BUILD_TESTS=${THEROCK_ENABLE_LLVM_TESTS}
33-
+ -DCLANG_INCLUDE_TESTS=${THEROCK_ENABLE_LLVM_TESTS}
41+
- -DLLVM_INCLUDE_TESTS=${THEROCK_ENABLE_LLVM_TESTS}
42+
+ -DLLVM_INCLUDE_TESTS=${THEROCK_BUILD_LLVM_TESTS}
43+
+ -DLLVM_BUILD_TESTS=${THEROCK_BUILD_LLVM_TESTS}
44+
+ -DCLANG_INCLUDE_TESTS=${THEROCK_BUILD_LLVM_TESTS}
3445
+ -DLLVM_LIT_ARGS='-vv --show-unsupported --show-xfail -j 16'
3546
-DLLVM_ENABLE_ZLIB=FORCE_ON
3647
-DLLVM_ENABLE_Z3_SOLVER=OFF
3748
-DLLVM_ENABLE_LIBXML2=OFF
49+
@@ -85,9 +92,9 @@ if(THEROCK_ENABLE_COMPILER)
50+
-DLLVM_BUILD_LLVM_C_DYLIB=OFF
51+
52+
# Build optimizations
53+
- -DLLVM_BUILD_EXAMPLES=${THEROCK_ENABLE_LLVM_TESTS}
54+
- -DLLVM_INCLUDE_EXAMPLES=${THEROCK_ENABLE_LLVM_TESTS}
55+
- -DLLVM_TOOL_LLVM_JITLINK_BUILD=${THEROCK_ENABLE_LLVM_TESTS}
56+
+ -DLLVM_BUILD_EXAMPLES=${THEROCK_BUILD_LLVM_TESTS}
57+
+ -DLLVM_INCLUDE_EXAMPLES=${THEROCK_BUILD_LLVM_TESTS}
58+
+ -DLLVM_TOOL_LLVM_JITLINK_BUILD=${THEROCK_BUILD_LLVM_TESTS}
59+
60+
# Clang features.
61+
-DCLANG_ENABLE_ARCMT=OFF
3862
@@ -95,6 +102,9 @@ if(THEROCK_ENABLE_COMPILER)
3963
-DCLANG_ENABLE_CLANGD=OFF
4064
-DCLANG_TIDY_ENABLE_STATIC_ANALYZER=OFF
@@ -46,7 +70,7 @@ index eee0b5d5..dfabe601 100644
4670
-DCLANG_TOOL_OFFLOAD_ARCH_BUILD=${THEROCK_CONDITION_IS_NON_WINDOWS}
4771
-DOPENMP_ENABLE_LIBOMPTARGET=${THEROCK_CONDITION_IS_NON_WINDOWS}
4872
diff --git a/compiler/artifact-amd-llvm.toml b/compiler/artifact-amd-llvm.toml
49-
index 6b3ba876..54bc1b14 100644
73+
index c74d02a9..7e0b24f3 100644
5074
--- a/compiler/artifact-amd-llvm.toml
5175
+++ b/compiler/artifact-amd-llvm.toml
5276
@@ -7,6 +7,7 @@ unmatched_exclude = [
@@ -58,10 +82,10 @@ index 6b3ba876..54bc1b14 100644
5882

5983
# LLVM deviates from the defaults in some key ways:
6084
diff --git a/compiler/pre_hook_amd-llvm.cmake b/compiler/pre_hook_amd-llvm.cmake
61-
index f84f7f21..aa0af2c2 100644
85+
index 28dc936b..8fede131 100644
6286
--- a/compiler/pre_hook_amd-llvm.cmake
6387
+++ b/compiler/pre_hook_amd-llvm.cmake
64-
@@ -124,9 +124,9 @@ set(LLVM_EXTERNAL_PROJECTS "rocm-device-libs;spirv-llvm-translator" CACHE STRING
88+
@@ -128,9 +128,9 @@ set(LLVM_EXTERNAL_PROJECTS "rocm-device-libs;spirv-llvm-translator" CACHE STRING
6589
# options to manage this transition but they require knowing the clange resource
6690
# dir. In order to avoid drift, we just fixate that too. This can all be
6791
# removed in a future version.

srock-bin/srock_common_vars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ _cmake_args=(-B build -GNinja
181181
-DTHEROCK_AMDGPU_FAMILIES=\'"$_gfamsemicolons"\'
182182
-DTHEROCK_AMDGPU_DIST_BUNDLE_NAME=srock
183183
-DTHEROCK_BACKGROUND_BUILD_JOBS=1
184-
-DTHEROCK_ENABLE_LLVM_TESTS=1
184+
-DTHEROCK_BUILD_LLVM_TESTS=1
185185
"${_cmake_enable[@]}"
186186
"$SROCK_THEROCK_DIR"
187187
)

0 commit comments

Comments
 (0)