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.

CUptiResult cuptiActivityGetNumDroppedRecords (CUcontextcontext, uint32_t streamId, size_t ∗ dropped)Get the number of records that were dropped from a queue because all the buffers in thequeue are full. See cuptiActivityEnqueueBuffer() for description of queues. Calling thisfunction does not transfer ownership of the buffer. The dropped count maintained for thequeue is reset to zero when this function is called.Parameters:context The context, or NULL to get dropped count from global queuestreamId The stream IDdropped The number of records that were dropped since the last call to this function.Return values:<strong>CUPTI</strong>_SUCCESS<strong>CUPTI</strong>_ERROR_NOT_INITIALIZED<strong>CUPTI</strong>_ERROR_INVALID_PARAMETER if dropped is NULLCUptiResult cuptiActivityQueryBuffer (CUcontext context, uint32_tstreamId, size_t ∗ validBufferSizeBytes)Query the status of buffer at the head in the queue. See cuptiActivityEnqueueBuffer() fordescription of queues. Calling this function does not transfer ownership of the buffer.Parameters:context The context, or NULL to query the global queuestreamId The stream IDvalidBufferSizeBytes 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_MAX_LIMIT_REACHED if buffer is full<strong>CUPTI</strong>_ERROR_QUEUE_EMPTY the queue is empty, validBufferSizeBytesreturns 0CUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 40

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

Saved successfully!

Ooh no, something went wrong!