File tree 4 files changed +36
-4
lines changed
4 files changed +36
-4
lines changed Original file line number Diff line number Diff line change 4
4
^\.Rprofile$
5
5
^\.Rproj\.user$
6
6
^appveyor\.yml$
7
+ ^check$
7
8
^doc$
8
9
^gen$
9
10
^libs$
Original file line number Diff line number Diff line change 3
3
.Rhistory
4
4
.RData
5
5
.DS_Store
6
+ check
6
7
inst /doc
7
8
inst /lib
8
9
inst /libs
Original file line number Diff line number Diff line change 18
18
#endif
19
19
20
20
#if RCPP_PARALLEL_USE_TBB
21
- #if defined(WINNT) && defined(__aarch64__) && !defined(TBB_USE_GCC_BUILTINS)
22
- #define TBB_USE_GCC_BUILTINS 1
23
- #endif
21
+ # if defined(WINNT) && defined(__aarch64__) && !defined(TBB_USE_GCC_BUILTINS)
22
+ # define TBB_USE_GCC_BUILTINS 1
23
+ # endif
24
24
# include " RcppParallel/TBB.h"
25
25
#endif
26
26
27
27
#include " RcppParallel/Backend.h"
28
-
29
28
#include " RcppParallel/RVector.h"
30
29
#include " RcppParallel/RMatrix.h"
31
30
Original file line number Diff line number Diff line change 10
10
#include < tbb/tbb.h>
11
11
#include < tbb/global_control.h>
12
12
#include < tbb/scalable_allocator.h>
13
+ #include < tbb/task_arena.h>
14
+
15
+ // For compatibility with older R packages.
16
+ namespace tbb {
17
+
18
+ #ifndef __TBB_task_scheduler_init_H
19
+ #define __TBB_task_scheduler_init_H
20
+
21
+ class task_scheduler_init {
22
+
23
+ public:
24
+ task_scheduler_init (
25
+ int number_of_threads = -1 ,
26
+ std::size_t stack_size = 0 )
27
+ {
28
+ }
29
+
30
+ static int default_num_threads ()
31
+ {
32
+ return tbb::this_task_arena::max_concurrency ();
33
+ }
34
+
35
+ static const int automatic = -1 ;
36
+ static const int deferred = -2 ;
37
+
38
+ };
39
+
40
+ #endif
41
+
42
+ } // end namespace tbb
43
+
13
44
14
45
namespace RcppParallel {
15
46
You can’t perform that action at this time.
0 commit comments