8000 Add TBB_PREVIEW_WAITING_FOR_WORKERS define (#916) · IntelPython/sdc@c37a732 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit c37a732

Browse files
Add TBB_PREVIEW_WAITING_FOR_WORKERS define (#916)
1 parent aff4c75 commit c37a732

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdc/native/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ using arena_ptr = std::unique_ptr<tbb::task_arena>;
4545
using tsi_ptr = std::unique_ptr<tbb::task_scheduler_init>;
4646
void ignore_assertion( const char*, int, const char*, const char * ) {}
4747
#elif HAS_TASK_SCHEDULER_HANDLE
48-
using tsh_ptr = tbb::task_scheduler_handle;
48+
using tsh_t = tbb::task_scheduler_handle;
4949
#else
5050
#pragma message("Unsupported version of TBB. Parallel sorting is disabled")
5151
#endif
@@ -55,7 +55,7 @@ struct tbb_context
5555
#if HAS_TASK_SCHEDULER_INIT
5656
tsi_ptr tsi;
5757
#elif HAS_TASK_SCHEDULER_HANDLE
58-
tsh tsh;
58+
tsh_t tsh;
5959
#else
6060
#pragma message("Unsupported version of TBB. Parallel sorting is disabled")
6161
#endif

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def check_file_at_path(path2file):
110110

111111
ind = [PREFIX_DIR + '/include', ]
112112
lid = [PREFIX_DIR + '/lib', ]
113-
eca = ['-std=c++11', "-O3"] # '-g', '-O0']
113+
eca = ['-std=c++11', "-O3", "-DTBB_PREVIEW_WAITING_FOR_WORKERS=1"] # '-g', '-O0']
114114
ela = ['-std=c++11', ]
115115

116116
io_libs = []

0 commit comments

Comments
 (0)
0