We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420b2ea commit cbc3565Copy full SHA for cbc3565
1 file changed
stan/math/prim/core/init_threadpool_tbb.hpp
@@ -5,6 +5,14 @@
5
6
#include <boost/lexical_cast.hpp>
7
8
+#include <tbb/tbb_stddef.h>
9
+
10
+#if TBB_VERSION_MAJOR == 2020
11
+#ifndef TBB_INTERFACE_NEW
12
+#define TBB_INTERFACE_NEW
13
+#endif
14
15
16
#ifdef TBB_INTERFACE_NEW
17
#include <tbb/global_control.h>
18
#include <tbb/task_arena.h>
@@ -86,7 +94,6 @@ inline int get_num_threads() {
86
94
*/
87
95
inline tbb::task_arena& init_threadpool_tbb() {
88
96
int tbb_max_threads = internal::get_num_threads();
89
-
90
97
static tbb::global_control tbb_gc(
91
98
tbb::global_control::max_allowed_parallelism, tbb_max_threads);
92
99
0 commit comments