Skip to content

Commit b2ae11b

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

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
@@ -11,7 +11,7 @@
1111
extern "C" SEXP defaultNumThreads() {
1212
SEXP threadsSEXP = Rf_allocVector(INTSXP, 1);
1313
#ifndef __TBB_tbb_stddef_H
14-
INTEGER(threadsSEXP)[0] = tbb::global_control::default_num_threads();
14+
INTEGER(threadsSEXP)[0] = tbb::global_control::max_allowed_parallelism;
1515
#else
1616
INTEGER(threadsSEXP)[0] = tbb::task_scheduler_init::default_num_threads();
1717
#endif

0 commit comments

Comments
 (0)