Skip to content

Commit

Permalink
[XRT-LITE] disable xrt-lite cts by default (but enable in CI) (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored Oct 25, 2024
1 parent c198536 commit 08961d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 4 additions & 0 deletions build_tools/build_test_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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+=(
Expand Down
5 changes: 5 additions & 0 deletions runtime/src/iree-amd-aie/driver/xrt-lite/cts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 08961d2

Please sign in to comment.