CUPTI User's Guide
CUPTI User's Guide
CUPTI User's Guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
valueSize The size of the value buffer in bytes, and returns the number of byteswritten to valuevalue Returns the attribute’s valueReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_DEVICE<strong>CUPTI</strong>_ERROR_INVALID_EVENT_DOMAIN_ID<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if valueSize or value is NULL, or ifattrib is not an event domain attribute<strong>CUPTI</strong>_ERROR_PARAMETER_SIZE_NOT_SUFFICIENT For non-c-stringattribute values, indicates that the value buffer is too small to hold the attributevalue.CUptiResult cuptiDeviceGetNumEventDomains (CUdevice device,uint32_t ∗ numDomains)Returns the number of domains in numDomains for a device.Parameters:device The CUDA devicenumDomains Returns the number of domainsReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_DEVICE<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if numDomains is NULLCUptiResult cuptiDeviceGetTimestamp (CUcontext context,uint64_t ∗ timestamp)Returns the device timestamp in ∗timestamp. The timestamp is reported in nanosecondsand indicates the time since the device was last reset.Parameters:context A context on the device from which to get the timestamptimestamp Returns the device timestampCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 86