CoDiPack  3.0.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::OpenMPThreadInformation Struct Reference

Thread information for OpenMP. More...

#include <openMPThreadInformation.hpp>

Inheritance diagram for codi::OpenMPThreadInformation:

Static Public Member Functions

static inlineint getMaxThreads ()
 Provides an upper bound on the number of threads.
 
static inlineint getThreadId ()
 Returns the id of the calling thread.
 
- Static Public Member Functions inherited from codi::ThreadInformationInterface
static inlineint getMaxThreads ()
 Provides an upper bound on the number of threads.
 
static inlineint getThreadId ()
 Returns the id of the calling thread.
 

Detailed Description

Thread information for OpenMP.

Member Function Documentation

◆ getMaxThreads()

static inlineint codi::OpenMPThreadInformation::getMaxThreads ( )
inlinestatic

Provides an upper bound on the number of threads.



Implementation: Limit applies to all threads, also those due to nesting.

◆ getThreadId()

static inlineint codi::OpenMPThreadInformation::getThreadId ( )
inlinestatic

Returns the id of the calling thread.

Thread ids are integers 0, 1, ..., maximum number of threads - 1.

Implementation: Returns custom IDs to account for nesting, in particular not omp_get_thread_num().


The documentation for this struct was generated from the following file: