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

Go to the source code of this file.

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.
 
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.