CppAD: A C++ Algorithmic Differentiation Package  20130102
omp_alloc Class Reference

List of all members.

Static Public Member Functions

static void set_max_num_threads (size_t number)
 Inform omp_alloc of the maximum number of OpenMP threads and enable parallel execution mode by initializing all statics in this file.
static size_t get_max_num_threads (void)
 Get the current maximum number of OpenMP threads that omp_alloc can use.
static bool in_parallel (void)
 Are we in a parallel execution state; i.e., is it possible that other threads are currently executing.
static size_t get_thread_num (void)
 Get current OpenMP thread number (zero if _OpenMP not defined).
static void * get_memory (size_t min_bytes, size_t &cap_bytes)
 Use omp_alloc to get a specified amount of memory.
static void return_memory (void *v_ptr)
 Return memory that was obtained by get_memory.
static void free_available (size_t thread)
 Return all the memory being held as available for a thread to the system.
static size_t inuse (size_t thread)
 Determine the amount of memory that is currently inuse.
static size_t available (size_t thread)
 Determine the amount of memory that is currently available for use.
template<class Type >
static Type * create_array (size_t size_min, size_t &size_out)
 Use omp_alloc to Create a Raw Array.
template<class Type >
static void delete_array (Type *array)
 Return Memory Used for a Raw Array to the Available Pool.

Detailed Description

Definition at line 21 of file omp_alloc.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines