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.

streamId The stream IDbuffer Returns the dequeued buffervalidBufferSizeBytes Returns the number of bytes in the buffer that contain activityrecordsReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if buffer or validBufferSizeBytesare NULL<strong>CUPTI</strong>_ERROR_QUEUE_EMPTY the queue is empty, buffer returns NULL andvalidBufferSizeBytes returns 0CUptiResult cuptiActivityDisable (CUpti_ActivityKind kind)Disable collection of a specific kind of activity record. Multiple kinds can be disabled bycalling this function multiple times. By default all activity kinds are disabled for collection.Parameters:kind The kind of activity record to stop collectingReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZEDCUptiResult cuptiActivityEnable (CUpti_ActivityKind kind)Enable collection of a specific kind of activity record. Multiple kinds can be enabled bycalling this function multiple times. By default all activity kinds are disabled for collection.Parameters:kind The kind of activity record to collectReturn values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_NOT_COMPATIBLE if the activity kind cannot be enabledCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 37

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

Saved successfully!

Ooh no, something went wrong!