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.

Parameters:device The CUDA deviceeventName The name of the event to findevent Returns the ID of the found event or undefined if unable to find the eventReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_DEVICE<strong>CUPTI</strong>_ERROR_INVALID_EVENT_NAME if unable to find an event with nameeventName. In this case ∗event is undefined<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if eventName or event are NULLCUptiResult cuptiEventGroupAddEvent (CUpti_EventGroupeventGroup, CUpti_EventID event)Add an event to an event group. The event add can fail for a number of reasons:◮ The event group is enabled◮ The event does not belong to the same event domain as the events that are alreadyin the event group◮ Device limitations on the events that can belong to the same group◮ The event group is fullParameters:eventGroup The event groupevent The event to add to the groupReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_EVENT_ID<strong>CUPTI</strong>_ERROR_OUT_OF_MEMORY<strong>CUPTI</strong>_ERROR_INVALID_OPERATION if eventGroup is enabled<strong>CUPTI</strong>_ERROR_NOT_COMPATIBLE if event belongs to a different eventdomain than the events already in eventGroup, or if a device limitation preventsevent from being collected at the same time as the events already in eventGroup<strong>CUPTI</strong>_ERROR_MAX_LIMIT_REACHED if eventGroup is full<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if eventGroup is NULLCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 90

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

Saved successfully!

Ooh no, something went wrong!