Skip to content

Commit 706b8ef

Browse files
committed
Fix compilation for the new TBB interface
1 parent d6347d2 commit 706b8ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" SEXP defaultNumThreads() {
1313
#ifndef __TBB_tbb_stddef_H
1414
INTEGER(threadsSEXP)[0] = tbb::global_control::default_num_threads();
1515
#else
16-
INTEGER(threadsSEXP)[0] = tbb::task_scheduler_init::default_num_threads();
16+
INTEGER(threadsSEXP)[0] = tbb::global_control::max_allowed_parallelism;
1717
#endif
1818
return threadsSEXP;
1919
}

0 commit comments

Comments
 (0)