Prev Next old_max_num_threads

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@ This is cppad-20221105 documentation. Here is a link to its current documentation .
Set Maximum Number of Threads for omp_alloc Allocator

Removed
This function has been removed from the CppAD API. Use the function thread_alloc::parallel_setup in its place.

Syntax
# include <cppad/utility/omp_alloc.hpp>
omp_alloc::max_num_threads(number)

Purpose
By default there is only one thread and all execution is in sequential mode (not parallel ).

number
The argument number has prototype
    size_t 
number
It must be greater than zero and specifies the maximum number of OpenMP threads that will be active at one time.

Restrictions
This function must be called before the program enters parallel execution mode.
Input File: include/cppad/utility/omp_alloc.hpp