[llvm] [offload] Add kernel replay tool to tests' dependencies (PR #205209)
Kevin Sala Penades via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 15:50:48 PDT 2026
https://github.com/kevinsala created https://github.com/llvm/llvm-project/pull/205209
None
>From 52d28ac7c13dcda30361d40b834f43cf8c3ef868 Mon Sep 17 00:00:00 2001
From: Kevin Sala <salapenades1 at llnl.gov>
Date: Mon, 22 Jun 2026 15:47:59 -0700
Subject: [PATCH] [offload] Add kernel replay tool to tests' dependencies
---
offload/test/CMakeLists.txt | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/offload/test/CMakeLists.txt b/offload/test/CMakeLists.txt
index 13e8c8d93d3d3..771944d8aa8d7 100644
--- a/offload/test/CMakeLists.txt
+++ b/offload/test/CMakeLists.txt
@@ -43,12 +43,14 @@ foreach(CURRENT_TARGET IN LISTS SYSTEM_TARGETS)
configure_file(lit.site.cfg.in ${CURRENT_TARGET}/lit.site.cfg @ONLY)
endforeach()
+# The tools that are needed or used by tests.
+set(OFFLOAD_TOOLS llvm-offload-device-info llvm-omp-kernel-replay)
add_offload_testsuite(check-libomptarget
"Running libomptarget tests"
${LIBOMPTARGET_LIT_TESTSUITES}
EXCLUDE_FROM_CHECK_ALL
- DEPENDS llvm-offload-device-info omptarget ${OMP_DEPEND} ${LIBOMPTARGET_TESTED_PLUGINS}
+ DEPENDS ${OFFLOAD_TOOLS} omptarget ${OMP_DEPEND} ${LIBOMPTARGET_TESTED_PLUGINS}
ARGS ${LIBOMPTARGET_LIT_ARG_LIST})
# Add liboffload unit tests - the test binary will run on all available devices
@@ -64,7 +66,7 @@ add_offload_testsuite(check-offload
${LIBOMPTARGET_LIT_TESTSUITES}
${CMAKE_CURRENT_BINARY_DIR}/unit
EXCLUDE_FROM_CHECK_ALL
- DEPENDS llvm-offload-device-info omptarget ${OMP_DEPEND} ${LIBOMPTARGET_TESTED_PLUGINS}
+ DEPENDS ${OFFLOAD_TOOLS} omptarget ${OMP_DEPEND} ${LIBOMPTARGET_TESTED_PLUGINS}
LLVMOffload OffloadUnitTests
ARGS ${LIBOMPTARGET_LIT_ARG_LIST})
More information about the llvm-commits
mailing list