HOME
| OPENMP API Specification: Version 5.0 November 2018

5.3.9  OMPD Scope Types

SummaryThe ompd_scope_t type identifies OMPD scopes.

Format

SVG-Viewer needed.

 

 
typedef enum ompd_scope_t { 
  ompd_scope_global = 1, 
  ompd_scope_address_space = 2, 
  ompd_scope_thread = 3, 
  ompd_scope_parallel = 4, 
  ompd_scope_implicit_task = 5, 
  ompd_scope_task = 6 
} ompd_scope_t;  

SVG-Viewer needed.

DescriptionThe ompd_scope_t type identifies OpenMP scopes, including those related to parallel regions and tasks. When used in an OMPD interface function call, the scope type and the ompd handle must match according to Table 5.1.


Table 5.1: Mapping of Scope Type and OMPD Handles


Scope types

Handles



ompd_scope_global

Address space handle for the host device

ompd_scope_address_space

Any address space handle

ompd_scope_thread

Any thread handle

ompd_scope_parallel

Any parallel handle

ompd_scope_implicit_task

Task handle for an implicit task

ompd_scope_task

Any task handle