From 08961d220047d60d017e85f50d042786dc431d20 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Fri, 25 Oct 2024 13:30:53 -0700 Subject: [PATCH] [XRT-LITE] disable xrt-lite cts by default (but enable in CI) (#858) --- .github/workflows/ci-linux.yml | 1 + build_tools/build_test_cpp.sh | 4 ++++ runtime/src/iree-amd-aie/driver/xrt-lite/cts/CMakeLists.txt | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 756d622db..0077cf5ab 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -70,6 +70,7 @@ jobs: run: | bash build_tools/download_peano.sh echo "PEANO_INSTALL_DIR=$PWD/llvm-aie" >> $GITHUB_ENV + echo "ENABLE_XRT_LITE_CTS_TESTS=ON" >> $GITHUB_ENV - name: Build packages run: | diff --git a/build_tools/build_test_cpp.sh b/build_tools/build_test_cpp.sh index a1d610f64..6d664d5b1 100644 --- a/build_tools/build_test_cpp.sh +++ b/build_tools/build_test_cpp.sh @@ -87,6 +87,10 @@ PEANO_INSTALL_DIR=${PEANO_INSTALL_DIR:-""} if [ "$PEANO_INSTALL_DIR" != "" ] && [ -d "$PEANO_INSTALL_DIR" ]; then CMAKE_ARGS+=(-DPEANO_INSTALL_DIR="$PEANO_INSTALL_DIR") fi +ENABLE_XRT_LITE_CTS_TESTS=${ENABLE_XRT_LITE_CTS_TESTS:-""} +if [ "$ENABLE_XRT_LITE_CTS_TESTS" != "" ]; then + CMAKE_ARGS+=(-DENABLE_XRT_LITE_CTS_TESTS="$ENABLE_XRT_LITE_CTS_TESTS") +fi if [ -d "$llvm_install_dir" ]; then CMAKE_ARGS+=( diff --git a/runtime/src/iree-amd-aie/driver/xrt-lite/cts/CMakeLists.txt b/runtime/src/iree-amd-aie/driver/xrt-lite/cts/CMakeLists.txt index 03642c0c2..a0645b50d 100644 --- a/runtime/src/iree-amd-aie/driver/xrt-lite/cts/CMakeLists.txt +++ b/runtime/src/iree-amd-aie/driver/xrt-lite/cts/CMakeLists.txt @@ -4,6 +4,11 @@ # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +set(ENABLE_XRT_LITE_CTS_TESTS OFF CACHE BOOL "") +if(NOT ENABLE_XRT_LITE_CTS_TESTS) + return() +endif() + include(CMakeDependentOption) iree_hal_cts_test_suite(