Skip to content

Commit 74486dc

Browse files
authored
[Offload] Add CMake cache to be used in AMDGPU bot (#119369)
Adds initial CMake cache definition that is similar to what we use in one of our production buidlbots. The goal is to consolidate the configurations and make them accessible. This cache file is a first step and to prepare for full pipeline testing once the new bot comes online.
1 parent 708a478 commit 74486dc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

offload/cmake/caches/AMDGPUBot.cmake

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This file is meant for test builds on one basic AMDGPU buildbot only.
2+
3+
# Install directory set to /tmp as this is a bot config
4+
set(CMAKE_INSTALL_PREFIX /tmp/llvm.install.test CACHE STRING "")
5+
6+
set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
7+
set(LLVM_ENABLE_RUNTIMES "compiler-rt;openmp;offload" CACHE STRING "")
8+
set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "")
9+
set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
10+
set(LLVM_LIT_ARGS "-v --show-unsupported --timeout 100 --show-xfail -j 32" CACHE STRING "")
11+
set(LLVM_TARGETS_TO_BUILD "host;AMDGPU" CACHE STRING "")
12+
13+
set(CLANG_DEFAULT_LINKER "lld" CACHE STRING "")
14+
15+
set(CMAKE_BUILD_TYPE Release CACHE STRING "")
16+
set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "")
17+
set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "")

0 commit comments

Comments
 (0)