2 # ifndef CPPAD_CORE_PARALLEL_AD_HPP
3 # define CPPAD_CORE_PARALLEL_AD_HPP
82 "parallel_ad must be called before entering parallel execution mode."
86 "parallel_ad cannot be called while a tape recording is in progress"
94 local::one_element_std_set<size_t>();
95 local::two_element_std_set<size_t>();
100 sp.add_element(0, 0);
111 CheckSimpleVector< Base, CppAD::vector<Base> >();
#define CPPAD_ASSERT_KNOWN(exp, msg)
Check that exp is true, if not print msg and terminate execution.
void parallel_ad(void)
Enable parallel execution mode with AD<Base> by initializing static variables that my be used...
The CppAD Simple Vector template class.
static bool in_parallel(void)
Are we in a parallel execution state; i.e., is it possible that other threads are currently executing...
size_t NumArg(OpCode op)
Number of arguments for a specified operator.
size_t NumRes(OpCode op)
Number of variables resulting from the specified operation.
static local::ADTape< Base > * tape_manage(tape_manage_job job)
Create and delete tapes that record AD<Base> operations for current thread.
static local::ADTape< Base > ** tape_handle(size_t thread)
Handle for the tape for this AD<Base> class and the specific thread.
Vector of sets of postivie integers, each set stored as a packed boolean array.
Two constant standard sets (currently used for concept checking).
static std::vector< discrete * > & List(void)
List of all objects in this class.
cons_iterator for one set of positive integers in a sparse_pack object.
static tape_id_t ** tape_id_handle(size_t thread)
Handle to the tape identifier for this AD<Base> class and the specific thread.
double elapsed_seconds(void)
Returns the elapsed number since the first call to this function.
static Handler & Current(void)
void resize(size_t n_set, size_t end)
Change number of sets, set end, and initialize all sets as empty.