HOME
| OPENMP API Specification: Version 5.1 November 2020

5.3.9  OMPD Scope Types

Summary The 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.

Description The 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 region handle

ompd_scope_implicit_task

Task handle for an implicit task

ompd_scope_task

Any task handle