HOME
| OPENMP API Specification: Version 5.0 November 2018

5.3.7  Native Thread Identifiers

SummaryThe ompd_thread_id_t type provides information about native threads.

Format

SVG-Viewer needed.

 

 
typedef uint64_t ompd_thread_id_t;  

SVG-Viewer needed.

DescriptionDifferent OpenMP runtimes may use different native thread implementations. Native thread identifiers can vary in size and format and, thus, are not explicitly represented in the OMPD API. Instead, native thread identifiers are passed across the interface via the ompd_thread_id_t type, which is a pointer to where the native thread identifier is stored, and the size of the native thread identifier in bytes. The OMPD library and a tool that uses it must agree on the format of the object that is passed. Each different kind of native thread identifier uses a unique unsigned 64-bit integer value. Recommended values of ompd_thread_id_t are defined in the ompd-types.h header file, which is available on http://www.openmp.org/.