[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 08:08:32 PST 2024
https://github.com/jplehr updated https://github.com/llvm/llvm-project/pull/119369
>From 7d82a6d51369ab521690745fd9f92441653b6f8c 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 | 17 +++++++++++++++++
1 file changed, 17 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..d72b620ae30805
--- /dev/null
+++ b/offload/cmake/caches/AMDGPUBot.cmake
@@ -0,0 +1,17 @@
+# This file is meant for test builds on one basic AMDGPU buildbot only.
+
+# Install directory set to /tmp as this is a bot config
+set(CMAKE_INSTALL_PREFIX /tmp/llvm.install.test CACHE STRING "")
+
+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 "host;AMDGPU" CACHE STRING "")
+
+set(CLANG_DEFAULT_LINKER "lld" 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