diff --git a/BUILD.md b/BUILD.md index 00f8fb47..e31456be 100644 --- a/BUILD.md +++ b/BUILD.md @@ -32,6 +32,9 @@ cd boost ### Dependencies The HEAD of this repo is compatible with the latest Level Zero Loader release. Please report incompatibilities at https://github.com/oneapi-src/level-zero-tests/issues. + +To build against loader releases prior to [v1.15.7](https://github.com/oneapi-src/level-zero/releases/tag/v1.15.7), add the cmake flag `-DENABLE_RUNTIME_TRACING=OFF`. + You can either build against the version you have installed on your system (automatic, Linux only), or specify an install prefix with the `CMAKE_PREFIX_PATH` cmake flag during configuration. This `CMAKE_PREFIX_PATH` must point to the top-level install directory where level-zero was installed. diff --git a/layer_tests/tracing/CMakeLists.txt b/layer_tests/tracing/CMakeLists.txt index 0f7d224d..452b162c 100644 --- a/layer_tests/tracing/CMakeLists.txt +++ b/layer_tests/tracing/CMakeLists.txt @@ -7,6 +7,11 @@ set(ipc_libraries Boost::system ) +option(ENABLE_RUNTIME_TRACING "Enable runtime tracing" ON) +if(ENABLE_RUNTIME_TRACING) + set(defines_runtime_tracing USE_RUNTIME_TRACING) +endif() + if(UNIX) list(APPEND ipc_event_libraries rt) endif() @@ -37,7 +42,7 @@ add_lzt_test( ${ipc_libraries} ${ipc_event_libraries} level_zero_tests::net - DEFINES USE_RUNTIME_TRACING + DEFINES ${defines_runtime_tracing} ) add_lzt_test_executable( @@ -62,7 +67,7 @@ add_lzt_test_executable( ${ipc_libraries} ${ipc_event_libraries} level_zero_tests::net - DEFINES USE_RUNTIME_TRACING + DEFINES ${defines_runtime_tracing} ) add_lzt_test_executable( @@ -87,5 +92,5 @@ add_lzt_test_executable( ${ipc_libraries} ${ipc_event_libraries} level_zero_tests::net - DEFINES USE_RUNTIME_TRACING + DEFINES ${defines_runtime_tracing} )