Skip to content

Commit 64567b3

Browse files
committed
Add cmake warning about setting UR_CONFORMANCE_TARGET_TRIPLES
Also document it in README
1 parent a7f5097 commit 64567b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ List of options provided by CMake:
112112
| UR_USE_UBSAN | Enable UndefinedBehavior Sanitizer | ON/OFF | OFF |
113113
| UR_USE_MSAN | Enable MemorySanitizer (clang only) | ON/OFF | OFF |
114114
| UR_ENABLE_TRACING | Enable XPTI-based tracing layer | ON/OFF | OFF |
115+
| UR_CONFORMANCE_TARGET_TRIPLES | SYCL triples to build CTS device binaries for | Comma-separated list | spir64 |
115116

116117
### Additional make targets
117118

test/conformance/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ if(DEFINED UR_DPCXX)
6464
"${CMAKE_CURRENT_BINARY_DIR}/device_binaries/")
6565
file(MAKE_DIRECTORY ${UR_CONFORMANCE_DEVICE_BINARIES_DIR})
6666

67-
if(DEFINED UR_CONFORMANCE_TARGET_TRIPLES)
67+
if(NOT "${UR_CONFORMANCE_TARGET_TRIPLES}" STREQUAL "")
6868
string(REPLACE "," ";" TARGET_TRIPLES ${UR_CONFORMANCE_TARGET_TRIPLES})
6969
else()
70+
message(WARNING "UR_CONFORMANCE_TARGET_TRIPLES wasn't set, defaulting to only generate spir64 device binaries")
7071
list(APPEND TARGET_TRIPLES "spir64")
7172
endif()
7273

0 commit comments

Comments
 (0)