2 # ifndef CPPAD_CORE_OMP_MAX_THREAD_HPP
3 # define CPPAD_CORE_OMP_MAX_THREAD_HPP
87 "omp_max_thread: number > 1 and _OPENMP is not defined"
#define CPPAD_ASSERT_KNOWN(exp, msg)
Check that exp is true, if not print msg and terminate execution.
static bool in_parallel(void)
Are we in a parallel execution state; i.e., is it possible that other threads are currently executing...
static void parallel_setup(size_t num_threads, bool(*in_parallel)(void), size_t(*thread_num)(void))
Set thread_alloc up for parallel mode usage.
static size_t get_thread_num(void)
Get current OpenMP thread number (zero if _OpenMP not defined).
static void omp_max_thread(size_t number)