HOME
| OPENMP API Specification: Version 5.1 November 2020

5.5.4  Address Space Information

5.5.4.1 ompd_get_omp_version

Summary The tool may call the ompd_get_omp_version function to obtain the version of the OpenMP API that is associated with an address space.

Format

SVG-Viewer needed.

 

 
ompd_rc_t ompd_get_omp_version( 
  ompd_address_space_handle_t *address_space, 
  ompd_word_t *omp_version 
);  

SVG-Viewer needed.

Description The tool may call the ompd_get_omp_version function to obtain the version of the OpenMP API that is associated with the address space.

Description of Arguments The address_space argument is an opaque handle that the tool provides to reference the address space of the OpenMP process or device.

Upon return, the omp_version argument contains the version of the OpenMP runtime in the _OPENMP version macro format.

Description of Return Codes This routine must return any of the general return codes listed at the beginning of Section 5.5.

Cross References

5.5.4.2 ompd_get_omp_version_string

Summary The ompd_get_omp_version_string function returns a descriptive string for the OpenMP API version that is associated with an address space.

Format

SVG-Viewer needed.

 

 
ompd_rc_t ompd_get_omp_version_string( 
  ompd_address_space_handle_t *address_space, 
  const char **string 
);  

SVG-Viewer needed.

Description After initialization, the tool may call the ompd_get_omp_version_string function to obtain the version of the OpenMP API that is associated with an address space.

Description of Arguments The address_space argument is an opaque handle that the tool provides to reference the address space of the OpenMP process or device. A pointer to a descriptive version string is placed into the location to which the string output argument points. After returning from the call, the tool owns the string. The OMPD library must use the memory allocation callback that the tool provides to allocate the string storage. The tool is responsible for releasing the memory.

Description of Return Codes This routine must return any of the general return codes listed at the beginning of Section 5.5.

Cross References