[llvm] [Offload] Add CMake cache to be used in AMDGPU bot (PR #119369)
Jan Patrick Lehr via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 07:22:34 PST 2024
https://github.com/jplehr updated https://github.com/llvm/llvm-project/pull/119369
>From 9dabdc18f098ecc8bfda90cbb855bd39c875a413 Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Tue, 10 Dec 2024 06:34:23 -0600
Subject: [PATCH] [Offload] Add CMake cache to be used in AMDGPU bot
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.
---
offload/cmake/caches/AMDGPUBot.cmake | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 offload/cmake/caches/AMDGPUBot.cmake
diff --git a/offload/cmake/caches/AMDGPUBot.cmake b/offload/cmake/caches/AMDGPUBot.cmake
new file mode 100644
index 00000000000000..fcc44962cf0244
--- /dev/null
+++ b/offload/cmake/caches/AMDGPUBot.cmake
@@ -0,0 +1,13 @@
+set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
+set(LLVM_ENABLE_RUNTIMES "compiler-rt;openmp;offload" CACHE STRING "")
+set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR ON CACHE BOOL "")
+set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
+set(LLVM_LIT_ARGS "-v --show-unsupported --timeout 100 --show-xfail -j 32" CACHE STRING "")
+set(LLVM_TARGETS_TO_BUILD "X86;AMDGPU" CACHE STRING "")
+
+set(CLANG_DEFAULT_LINKER "lld" CACHE STRING "")
+
+set(CMAKE_INSTALL_PREFIX /tmp/llvm.install.jpbot CACHE STRING "")
+set(CMAKE_BUILD_TYPE Release CACHE STRING "")
+set(CMAKE_C_COMPILER_LAUNCHER ccache CACHE STRING "")
+set(CMAKE_CXX_COMPILER_LAUNCHER ccache CACHE STRING "")
More information about the llvm-commits
mailing list