|
NVTX C API Reference v3
NVIDIA Tools Extension Library
|
Size and alignment information for predefined payload entry types. More...
#include <nvToolsExtPayload.h>
Data Fields | |
| uint16_t | size |
| uint16_t | align |
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.
| uint16_t nvtxPayloadEntryTypeInfo_t::align |
Definition at line 782 of file nvToolsExtPayload.h.
| uint16_t nvtxPayloadEntryTypeInfo_t::size |
Definition at line 781 of file nvToolsExtPayload.h.