Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 7b9e261

Browse files
committed
Move limitation of test from CMake to LIT
For ESIMD emulator backend only tests from SYCL/ESIMD are run.
1 parent 2a94ecd commit 7b9e261

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

SYCL/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ if(CHECK_SYCL_ALL)
1919

2020
string(REPLACE "," "_" TARGET check-sycl-${TARGET_BE}-${TARGET_DEVICES})
2121

22-
set(TEST_DIR ".")
23-
if(${TARGET_BE} MATCHES "esimd_emulator")
24-
set(TEST_DIR "./ESIMD/")
25-
endif()
2622
add_custom_target(${TARGET}
27-
COMMAND python3 ${TEST_SUITE_LIT} ${TEST_SUITE_LIT_FLAGS} --param sycl_be=${TARGET_BE} --param target_devices=${TARGET_DEVICES} ${TEST_DIR}
23+
COMMAND python3 ${TEST_SUITE_LIT} ${TEST_SUITE_LIT_FLAGS} --param sycl_be=${TARGET_BE} --param target_devices=${TARGET_DEVICES} .
2824
COMMENT "Running the SYCL tests for ${TARGET} backend"
2925
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
3026
DEPENDS ${TEST_SUITE_TARGETS}

SYCL/lit.cfg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@
209209
config.sycl_be +
210210
"'. Supported values are {}".format(', '.join(supported_sycl_be)))
211211

212+
# Run only tests in ESIMD subforlder for the ext_intel_esimd_emulator
213+
if config.sycl_be == 'ext_intel_esimd_emulator':
214+
config.test_source_root += "/ESIMD"
215+
config.test_exec_root += "/ESIMD"
216+
212217
# If HIP_PLATFORM flag is not set, default to AMD, and check if HIP platform is supported
213218
supported_hip_platforms=["AMD", "NVIDIA"]
214219
if config.hip_platform == "":

0 commit comments

Comments
 (0)