Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dynamic Selection] Parallel tests for Dynamic Selection #1623

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,17 @@ set(_regexp_switch_off_checked_it "(test/general/header_order_ranges|test/paral
set(_regexp_pstl_offload_only "(test/pstl_offload)")
set(_regexp_pstl_offload_parallel_api "(test/xpu_api|test/parallel_api/algorithm|test/parallel_api/memory|test/parallel_api/numeric)")
set(_regexp_pstl_offload_exclude "(test/parallel_api/algorithm/alg.sorting/alg.binary.search|test/parallel_api/numeric/numeric.ops/.*_by_segment)")

set(_regexp_parallel_dynamic_selection "(test/parallel_api/dynamic_selection/parallel_tests/*)")
# Some of the headers tests C++20/23 files that can or cannot be available in C++17 mode
# So we need to check file presence and skip the test if no header available
# The test should be placed in the special folder and the name should be the same as the header that is required to be present
set(_regexp_pstl_offload_header_presence_required "(test/pstl_offload/headers/headers.standard/requires_header_presence)")

file(GLOB_RECURSE UNIT_TESTS "*.pass.cpp")
foreach (_file IN LISTS UNIT_TESTS)
if (_file MATCHES "${_regexp_parallel_dynamic_selection}")
SET(CMAKE_CXX_FLAGS "-pthread")
endif()
if (_file MATCHES "${_regexp_pstl_offload_only}")
if (NOT _ONEDPL_PSTL_OFFLOAD STREQUAL off)
if (_file MATCHES "${_regexp_pstl_offload_header_presence_required}")
Expand Down
Loading
Loading