CUPTI User's Guide
CUPTI User's Guide
CUPTI User's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Parameters:eventGroup The event groupReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_HARDWARE<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if eventGroup is NULLCUptiResult cuptiEventGroupEnable (CUpti_EventGroupeventGroup)Enable an event group. Enabling an event group zeros the value of all the events in thegroup and then starts collection of those events.Parameters:eventGroup The event groupReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_HARDWARE<strong>CUPTI</strong>_ERROR_NOT_READY if eventGroup does not contain any events<strong>CUPTI</strong>_ERROR_NOT_COMPATIBLE if eventGroup cannot be enabled due toother already enabled event groups<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if eventGroup is NULLCUptiResult cuptiEventGroupGetAttribute (CUpti_EventGroupeventGroup, CUpti_EventGroupAttribute attrib, size_t ∗valueSize, void ∗ value)Read an event group attribute and return it in ∗value.Parameters:eventGroup The event groupattrib The attribute to readvalueSize Size of buffer pointed by the value, and returns the number of bytes writtento valuevalue Returns the value of the attributeCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 92