Skip to content

Commit 6ff42cd

Browse files
committed
Update TBB functionality
See https://software.intel.com/content/www/us/en/develop/articles/tbb-revamp.html Signed-off-by: Hamada S. Badr <hamada.s.badr@gmail.com>
1 parent 1a679cd commit 6ff42cd

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
@@ -10,7 +10,7 @@
1010

1111
extern "C" SEXP defaultNumThreads() {
1212
SEXP threadsSEXP = Rf_allocVector(INTSXP, 1);
13-
INTEGER(threadsSEXP)[0] = tbb::task_scheduler_init::default_num_threads();
13+
INTEGER(threadsSEXP)[0] = tbb::global_control::max_allowed_parallelism;
1414
return threadsSEXP;
1515
}
1616

0 commit comments

Comments
 (0)