Prev Next omp_inuse

@(@\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 .
Amount of Memory a Thread is Currently Using

Deprecated 2011-08-31

Syntax
# include <cppad/utility/omp_alloc.hpp>
num_bytes = omp_alloc::inuse(thread) Use the function thread_alloc::inuse instead.

Purpose
Memory being managed by omp_alloc has two states, currently in use by the specified thread, and quickly available for future use by the specified thread. This function informs the program how much memory is in use.

thread
This argument has prototype
    size_t 
thread
Either omp_get_thread_num must be the same as thread , or the current execution mode must be sequential (not parallel ).

num_bytes
The return value has prototype
    size_t 
num_bytes
It is the number of bytes currently in use by the specified thread.
Input File: include/cppad/utility/omp_alloc.hpp