Skip to content

Commit 96dab08

Browse files
author
Pavel Chupin
authored
[SYCL][LIT] Remove sycl tests from check-all in Debug mode (#7262)
They are extremely slow for Debug compiler and sporadically timeout. It would be still possible to run these through check-sycl target. This is NFC for Github Actions CI since we don't use check-all and call all targets separately.
1 parent cc18904 commit 96dab08

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sycl/test/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ list(APPEND SYCL_DEPLOY_TEST_DEPS
4242
deploy-sycl-toolchain
4343
)
4444

45+
set(SYCL_TEST_EXCLUDE "")
46+
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
47+
# Debug compiler is very slow on sycl tests, tests may timeout sporadically
48+
set(SYCL_TEST_EXCLUDE EXCLUDE_FROM_CHECK_ALL)
49+
message(STATUS "Note: SYCL tests are excluded in check-all for Debug compiler")
50+
endif()
51+
4552
add_lit_testsuite(check-sycl-deploy "Running the SYCL regression tests"
4653
${CMAKE_CURRENT_BINARY_DIR}
4754
ARGS ${DEPLOY_RT_TEST_ARGS}
@@ -56,6 +63,7 @@ add_lit_testsuite(check-sycl-spirv "Running device-agnostic SYCL regression test
5663
ARGS ${RT_TEST_ARGS}
5764
PARAMS "SYCL_TRIPLE=spir64-unknown-unknown"
5865
DEPENDS ${SYCL_TEST_DEPS}
66+
${SYCL_TEST_EXCLUDE}
5967
)
6068

6169
add_custom_target(check-sycl)
@@ -68,6 +76,7 @@ if(SYCL_BUILD_PI_CUDA)
6876
ARGS ${RT_TEST_ARGS}
6977
PARAMS "SYCL_TRIPLE=nvptx64-nvidia-cuda;SYCL_PLUGIN=cuda"
7078
DEPENDS ${SYCL_TEST_DEPS}
79+
${SYCL_TEST_EXCLUDE}
7180
)
7281

7382
add_custom_target(check-sycl-cuda)
@@ -83,6 +92,7 @@ if(SYCL_BUILD_PI_HIP)
8392
ARGS ${RT_TEST_ARGS}
8493
PARAMS "SYCL_TRIPLE=nvptx64-nvidia-cuda;SYCL_PLUGIN=hip"
8594
DEPENDS ${SYCL_TEST_DEPS}
95+
${SYCL_TEST_EXCLUDE}
8696
)
8797

8898
add_dependencies(check-sycl-hip check-sycl-hip-ptx)
@@ -92,6 +102,7 @@ if(SYCL_BUILD_PI_HIP)
92102
ARGS ${RT_TEST_ARGS}
93103
PARAMS "SYCL_TRIPLE=amdgcn-amd-amdhsa;SYCL_PLUGIN=hip"
94104
DEPENDS ${SYCL_TEST_DEPS}
105+
${SYCL_TEST_EXCLUDE}
95106
)
96107

97108
add_dependencies(check-sycl-hip check-sycl-hip-gcn)

0 commit comments

Comments
 (0)