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_CONTEXT<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER is timestamp is NULLCUptiResult cuptiEnumEventDomains (size_t ∗ arraySizeBytes,CUpti_EventDomainID ∗ domainArray)Returns all the event domains available on any CUDA-capable device. Event domain IDsare returned in domainArray. The size of the domainArray buffer is given by∗arraySizeBytes. The size of the domainArray buffer must be at least numDomains ∗sizeof(CUpti_EventDomainID) or all domains will not be returned. The value returned in∗arraySizeBytes contains the number of bytes returned in domainArray.Parameters:arraySizeBytes The size of domainArray in bytes, and returns the number of byteswritten to domainArraydomainArray Returns all the event domainsReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if arraySizeBytes or domainArray areNULLCUptiResult cuptiEventDomainEnumEvents(CUpti_EventDomainID eventDomain, size_t ∗arraySizeBytes, CUpti_EventID ∗ eventArray)Returns the event IDs in eventArray for a domain. The size of the eventArray buffer isgiven by ∗arraySizeBytes. The size of the eventArray buffer must be at leastnumdomainevents ∗ sizeof(CUpti_EventID) or else all events will not be returned. Thevalue returned in ∗arraySizeBytes contains the number of bytes returned in eventArray.Parameters:eventDomain ID of the event domainarraySizeBytes The size of eventArray in bytes, and returns the number of byteswritten to eventArrayeventArray Returns the IDs of the events in the domainCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 87

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

Saved successfully!

Ooh no, something went wrong!