Automatic Differentiation
 
Loading...
Searching...
No Matches
init_threadpool_tbb.hpp File Reference
#include <stan/math/prim/err/invalid_argument.hpp>
#include <tbb/tbb_stddef.h>
#include <tbb/global_control.h>
#include <tbb/task_arena.h>
#include <charconv>
#include <cstdlib>
#include <string_view>
#include <thread>

Go to the source code of this file.

Classes

struct  stan::math::internal::threadpool_tbb_state
 Own the concurrency control before the arena, so the arena dies first. More...
 

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Macros

#define TBB_INTERFACE_NEW
 

Functions

int stan::math::internal::get_num_threads ()
 Get number of threads to use.
 
threadpool_tbb_state stan::math::internal::make_threadpool_tbb (int num_threads)
 Construct independently owned thread-pool state for an explicit count.
 
tbb::task_arena & stan::math::init_threadpool_tbb (int n_threads=0)
 Initialize the Intel TBB threadpool and global scheduler through the tbb::task_arena object.