11.07.2015 Views

CUPTI User's Guide

CUPTI User's Guide

CUPTI User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Return values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if valueSize or value is NULL, or ifattrib is not an eventgroup 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 cuptiEventGroupReadAllEvents (CUpti_EventGroupeventGroup, CUpti_ReadEventFlags flags, size_t ∗eventValueBufferSizeBytes, uint64_t ∗ eventValueBuffer, size_t ∗eventIdArraySizeBytes, CUpti_EventID ∗ eventIdArray, size_t ∗numEventIdsRead)Read the values for all the events in an event group. The event values are returned in theeventValueBuffer buffer. eventValueBufferSizeBytes indicates the size ofeventValueBuffer. The buffer must be at least (sizeof(uint64) ∗ number of events ingroup) if <strong>CUPTI</strong>_EVENT_GROUP_ATTR_PROFILE_ALL_DOMAIN_INSTANCESis not set on the group containing the events. The buffer must be at least (sizeof(uint64) ∗number of domain instances ∗ number of events in group) if<strong>CUPTI</strong>_EVENT_GROUP_ATTR_PROFILE_ALL_DOMAIN_INSTANCES is set onthe group.The data format returned in eventValueBuffer is:◮ domain instance 0: event0 event1 ... eventN◮ domain instance 1: event0 event1 ... eventN◮ ...◮ domain instance M: event0 event1 ... eventNThe event order in eventValueBuffer is returned in eventIdArray. The size ofeventIdArray is specified in eventIdArraySizeBytes. The size should be at least(sizeof(CUpti_EventID) ∗ number of events in group).If any instance of any event counter overflows, the value returned for that event instancewill be <strong>CUPTI</strong>_EVENT_OVERFLOW.The only allowed value for flags is <strong>CUPTI</strong>_EVENT_READ_FLAG_NONE.Reading events from a disabled event group is not allowed.Parameters:eventGroup The event groupCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 93

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!