HOME
| OPENMP API Specification: Version 5.1 November 2020

5.3.13  Primitive Type Sizes

Summary The ompd_device_type_sizes_t type provides the size of primitive types in the OpenMP architecture address space.

Format

SVG-Viewer needed.

 

 
typedef struct ompd_device_type_sizes_t { 
  uint8_t sizeof_char; 
  uint8_t sizeof_short; 
  uint8_t sizeof_int; 
  uint8_t sizeof_long; 
  uint8_t sizeof_long_long; 
  uint8_t sizeof_pointer; 
} ompd_device_type_sizes_t;  

SVG-Viewer needed.

Description The ompd_device_type_sizes_t type is used in operations through which the OMPD library can interrogate the third-party tool about the size of primitive types for the target architecture of the OpenMP runtime, as returned by the sizeof operator. The fields of ompd_device_type_sizes_t give the sizes of the eponymous basic types used by the OpenMP runtime. As the third-party tool and the OMPD library, by definition, execute on the same architecture, the size of the fields can be given as uint8_t.

Cross References