Skip to content

Commit c3ec5f9

Browse files
authored
[SYCL] Improve project documentation (intel#24)
* Add project contribution instructions * Update README.txt to descrive DPC++ specifics * Add possibility to run several devices under same BE separtely
1 parent abfaa7c commit c3ec5f9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

SYCL/CMakeLists.txt

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ if(CHECK_SYCL_ALL)
77
string(REPLACE ":" ";" BE_LIST ${BACKEND})
88
list (GET BE_LIST 0 TARGET_BE)
99
list (GET BE_LIST 1 TARGET_DEVICES)
10+
1011
message("Run on ${TARGET_DEVICES} for ${TARGET_BE}")
11-
add_custom_target(check-sycl-${TARGET_BE}
12-
COMMAND ${TEST_SUITE_LIT} ${TEST_SUITE_LIT_FLAGS} --param sycl_be=${TARGET_BE} --param target_devices=${TARGET_DEVICES} .
13-
COMMENT "Running the SYCL tests for ${TARGET_BE} backend"
12+
13+
string(REPLACE "," "_" TARGET check-sycl-${TARGET_BE}-${TARGET_DEVICES})
14+
15+
add_custom_target(${TARGET}
16+
COMMAND python3 ${TEST_SUITE_LIT} ${TEST_SUITE_LIT_FLAGS} --param sycl_be=${TARGET_BE} --param target_devices=${TARGET_DEVICES} .
17+
COMMENT "Running the SYCL tests for ${TARGET} backend"
1418
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
1519
DEPENDS ${TEST_SUITE_TARGETS}
1620
USES_TERMINAL
1721
)
18-
set_target_properties(check-sycl-${TARGET_BE} PROPERTIES FOLDER "SYCL Level Zero tests")
19-
add_dependencies(check-sycl-all check-sycl-${TARGET_BE})
22+
set_target_properties(${TARGET} PROPERTIES FOLDER "SYCL Level Zero tests")
23+
add_dependencies(check-sycl-all ${TARGET})
2024

2125
endforeach()
2226
endif(CHECK_SYCL_ALL)

0 commit comments

Comments
 (0)