Skip to content

Commit 873396e

Browse files
committed
[SYCL] Fix build with XPTI disabled
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 7b8996e commit 873396e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

buildbot/configure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def do_configure(args, passthrough_args):
6262
sycl_enabled_backends = ["opencl"]
6363
sycl_preview_lib = "ON"
6464

65-
sycl_enable_xpti_tracing = "ON"
65+
sycl_enable_xpti_tracing = "OFF"
6666
xpti_enable_werror = "OFF"
6767
llvm_enable_zstd = "ON"
6868
spirv_enable_dis = "OFF"

sycl/cmake/modules/FetchUnifiedRuntime.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ set(UR_BUILD_TESTS "${SYCL_UR_BUILD_TESTS}" CACHE BOOL "" FORCE)
2929
set(UR_BUILD_EXAMPLES "${SYCL_UR_BUILD_TESTS}" CACHE BOOL "" FORCE)
3030

3131
# Here we override the defaults to unified-runtime
32-
set(UR_BUILD_XPTI_LIBS OFF)
32+
set(UR_BUILD_XPTI_LIBS OFF CACHE BOOL "")
3333
set(UR_ENABLE_SYMBOLIZER ON CACHE BOOL "Enable symbolizer for sanitizer layer.")
34-
set(UR_ENABLE_TRACING ON)
34+
set(UR_ENABLE_TRACING ON CACHE_BOOL "")
3535

3636
set(UR_EXTERNAL_DEPENDENCIES "sycl-headers" CACHE STRING
3737
"List of external CMake targets for executables/libraries to depend on" FORCE)

sycl/unittests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (LLVM_ENABLE_ZSTD)
5757
endif()
5858

5959
# TODO Enable xpti tests for Windows
60-
if (NOT WIN32)
60+
if (SYCL_ENABLE_XPTI_TRACING AND NOT WIN32)
6161
add_subdirectory(xpti_trace)
6262
endif()
6363
add_subdirectory(sampler)

0 commit comments

Comments
 (0)