HOME
| OPENMP API Specification: Version 5.1 November 2020

5.3.7  Native Thread Identifiers

Summary The ompd_thread_id_t type provides information about native threads.

Format

SVG-Viewer needed.

 

 
typedef uint64_t ompd_thread_id_t;  

SVG-Viewer needed.

Description OpenMP runtimes may use different native thread implementations. Native thread identifiers for these implementations can vary in size and format and, thus, are not explicitly represented in the OMPD interface. Instead, a native thread identifier is passed across the interface via its ompd_thread_id_t kind, its size in bytes and a pointer to where it is stored. The OMPD library and the third-party tool use the ompd_thread_id_t kind to interpret the format of the native thread identifier that is referenced by the pointer argument. Each different native thread identifier kind is represented by a unique unsigned 64-bit integer value.

Recommended values of ompd_thread_id_t kinds, and formats for some corresponding native thread identifiers, are defined in the ompd-types.h header file, which is available on http://www.openmp.org/.