Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sycl/cmake/modules/AddSYCLUnitTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,7 @@ endfunction()
# `config.test_format = lit.formats.GoogleTest(config.llvm_build_mode, <...>)`
macro(add_sycl_unittest test_name_prefix link_variant)
add_sycl_unittest_internal(${test_name_prefix}_Non_Preview_Tests ${link_variant} FALSE ${ARGN})
add_sycl_unittest_internal(${test_name_prefix}_Preview_Tests ${link_variant} TRUE ${ARGN})
if(SYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB)
add_sycl_unittest_internal(${test_name_prefix}_Preview_Tests ${link_variant} TRUE ${ARGN})
endif()
endmacro()
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ if("cxx_std_20" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
Memory.cpp
)

target_compile_features(IPCTests_Preview_Tests PUBLIC cxx_std_20)
if(SYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB)
target_compile_features(IPCTests_Preview_Tests PUBLIC cxx_std_20)
endif()
target_compile_features(IPCTests_Non_Preview_Tests PUBLIC cxx_std_20)
endif()
4 changes: 3 additions & 1 deletion sycl/unittests/compression/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ add_sycl_unittest(CompressionTests OBJECT
CompressionTests.cpp
)
target_compile_definitions(CompressionTests_Non_Preview_Tests PRIVATE SYCL_RT_ZSTD_AVAILABLE)
target_compile_definitions(CompressionTests_Preview_Tests PRIVATE SYCL_RT_ZSTD_AVAILABLE __INTEL_PREVIEW_BREAKING_CHANGES)
if(SYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB)
target_compile_definitions(CompressionTests_Preview_Tests PRIVATE SYCL_RT_ZSTD_AVAILABLE __INTEL_PREVIEW_BREAKING_CHANGES)
endif()
4 changes: 3 additions & 1 deletion sycl/unittests/kernel-and-program/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ add_sycl_unittest(KernelAndProgramTests OBJECT
KernelInfoShortcuts.cpp
)
target_compile_definitions(KernelAndProgramTests_Non_Preview_Tests PRIVATE __SYCL_INTERNAL_API)
target_compile_definitions(KernelAndProgramTests_Preview_Tests PRIVATE __SYCL_INTERNAL_API __INTEL_PREVIEW_BREAKING_CHANGES)
if(SYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB)
target_compile_definitions(KernelAndProgramTests_Preview_Tests PRIVATE __SYCL_INTERNAL_API __INTEL_PREVIEW_BREAKING_CHANGES)
endif()
6 changes: 4 additions & 2 deletions sycl/unittests/ur/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ add_sycl_unittest(UrTests OBJECT

add_dependencies(UrTests_Non_Preview_Tests sycl)
target_include_directories(UrTests_Non_Preview_Tests PRIVATE SYSTEM ${sycl_inc_dir})
add_dependencies(UrTests_Preview_Tests sycl)
target_include_directories(UrTests_Preview_Tests PRIVATE SYSTEM ${sycl_inc_dir})
if(SYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB)
add_dependencies(UrTests_Preview_Tests sycl)
target_include_directories(UrTests_Preview_Tests PRIVATE SYSTEM ${sycl_inc_dir})
endif()
4 changes: 3 additions & 1 deletion sycl/unittests/xpti_trace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ add_sycl_unittest(XptiTraceTests OBJECT
QueueIDCheck.cpp
)
target_link_libraries(XptiTraceTests_Non_Preview_Tests PRIVATE xpti xptitest_subscriber)
target_link_libraries(XptiTraceTests_Preview_Tests PRIVATE xpti xptitest_subscriber)
if(SYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB)
target_link_libraries(XptiTraceTests_Preview_Tests PRIVATE xpti xptitest_subscriber)
endif()