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.

CUptiResult cuptiEventGroupCreate (CUcontext context,CUpti_EventGroup ∗ eventGroup, uint32_t flags)Creates a new event group for context and returns the new group in ∗eventGroup.Note:flags are reserved for future use and should be set to zero.Parameters:context The context for the event groupeventGroup Returns the new event groupflags Reserved - must be zeroReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_CONTEXT<strong>CUPTI</strong>_ERROR_OUT_OF_MEMORY<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if eventGroup is NULLCUptiResult cuptiEventGroupDestroy (CUpti_EventGroupeventGroup)Destroy an eventGroup and free its resources. An event group cannot be destroyed if it isenabled.Parameters:eventGroup The event group to destroyReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_OPERATION if the event group is enabled<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if eventGroup is NULLCUptiResult cuptiEventGroupDisable (CUpti_EventGroupeventGroup)Disable an event group. Disabling an event group stops collection of events contained inthe group.CUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 91

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

Saved successfully!

Ooh no, something went wrong!