HOME
| OPENMP API Specification: Version 5.0 November 2018

5.4.4  Data Format Conversion: ompd_callback_device_host_fn_t

SummaryThe ompd_callback_device_host_fn_t type is the type signature of the callback that the tool provides to convert data between the formats that the tool and the OMPD library use and that the OpenMP program uses.

Format

SVG-Viewer needed.

 

 
typedef ompd_rc_t (*ompd_callback_device_host_fn_t) ( 
  ompd_address_space_context_t *address_space_context, 
  const void *input, 
  ompd_size_t unit_size, 
  ompd_size_t count, 
  void *output 
);  

SVG-Viewer needed.

DescriptionThe architecture and/or programming-model of the tool and the OMPD library may be different from that of the OpenMP program that is being examined. Thus, the conventions for representing data may differ. The callback interface includes operations to convert between the conventions, such as the byte order (endianness), that the tool and OMPD library use and the one that the OpenMP program uses. The callback with the ompd_callback_device_host_fn_t type signature convert data between formats

Description of ArgumentsThe address_space_context argument specifies the OpenMP address space that is associated with the data. The input argument is the source buffer and the output argument is the destination buffer. The unit_size argument is the size of each of the elements to be converted. The count argument is the number of elements to be transformed. The OMPD library allocates and owns the input and output buffers. It must ensure that the buffers have the correct size, and are eventually deallocated when they are no longer needed.

Cross References