11.07.2015 Views

CUPTI User's Guide

CUPTI User's Guide

CUPTI User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CUPTI</strong>_ERROR_INVALID_OPERATION if any of the event groups contained inthe sets is enabled<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if eventGroupSets is NULLCUptiResult cuptiGetNumEventDomains (uint32_t ∗ numDomains)Returns the total number of event domains available on any CUDA-capable device.Parameters:numDomains Returns the number of domainsReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if numDomains is NULLCUptiResult cuptiGetTimestamp (uint64_t ∗ timestamp)Returns a timestamp normalized to correspond with the start and end timestampsreported in the <strong>CUPTI</strong> activity records. The timestamp is reported in nanoseconds.Parameters:timestamp Returns the <strong>CUPTI</strong> timestampReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if timestamp is NULLCUptiResult cuptiSetEventCollectionMode (CUcontext context,CUpti_EventCollectionMode mode)Set the event collection mode for a context. The mode controls the event collectionbehavior of all events in event groups created in the context.Parameters:context The contextmode The event collection modeReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_CONTEXTCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 98

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

Saved successfully!

Ooh no, something went wrong!