1 parent 2394425 commit b3de108Copy full SHA for b3de108
2 files changed
src/Makevars
@@ -1,7 +1,7 @@
1
2
CXX_STD = CXX11
3
4
-PKG_CPPFLAGS += -I../inst/include/
+PKG_CPPFLAGS += -I../inst/include/ -DRCPP_PARALLEL_USE_TBB=1
5
6
ifeq ($(OS), Windows_NT)
7
src/options.cpp
@@ -49,10 +49,6 @@ extern "C" SEXP defaultNumThreads() {
49
50
#include <tthread/tinythread.h>
51
52
-extern "C" SEXP setThreadOptions(SEXP numThreadsSEXP, SEXP stackSizeSEXP) {
53
- return R_NilValue;
54
-}
55
-
56
extern "C" SEXP defaultNumThreads() {
57
SEXP threadsSEXP = Rf_allocVector(INTSXP, 1);
58
INTEGER(threadsSEXP)[0] = tthread::thread::hardware_concurrency();
0 commit comments