NVTX C API Reference v3
NVIDIA Tools Extension Library
Loading...
Searching...
No Matches
Data Fields
nvtxPayloadEntryTypeInfo_t Struct Reference

Size and alignment information for predefined payload entry types. More...

#include <nvToolsExtPayload.h>

Data Fields

uint16_t size
 
uint16_t align
 

Detailed Description

Size and alignment information for predefined payload entry types.

The struct contains the size and alignment in bytes. An array for the predefined types is passed via nvtxExtModuleInfo_t to the NVTX client/handler. The entry type value is used as the index into this array.

Providing this array is important for cross-platform portability. Types such as NVTX_PAYLOAD_ENTRY_TYPE_INT, _LONG, _SIZE, _ADDRESS, and _LONGDOUBLE have platform-dependent sizes. Without this information, a tool falls back to using its own platform's sizeof(), which may differ from the producer's platform (e.g. 32-bit vs 64-bit, or different compilers with varying long / long double sizes). The array must have at least NVTX_PAYLOAD_ENTRY_TYPE_INFO_ARRAY_SIZE entries.

Definition at line 779 of file nvToolsExtPayload.h.

Field Documentation

◆ align

uint16_t nvtxPayloadEntryTypeInfo_t::align

Definition at line 782 of file nvToolsExtPayload.h.

◆ size

uint16_t nvtxPayloadEntryTypeInfo_t::size

Definition at line 781 of file nvToolsExtPayload.h.


The documentation for this struct was generated from the following file: