CUPTI User's Guide
CUPTI User's Guide
CUPTI User's Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>CUPTI</strong>_ACTIVITY_MEMCPY_KIND_HTOH = 9 }The kind of a memory copy, indicating the source and destination targets of the copy.◮ enum CUpti_ActivityMemoryKind {<strong>CUPTI</strong>_ACTIVITY_MEMORY_KIND_UNKNOWN = 0,<strong>CUPTI</strong>_ACTIVITY_MEMORY_KIND_PAGEABLE = 1,<strong>CUPTI</strong>_ACTIVITY_MEMORY_KIND_PINNED = 2,<strong>CUPTI</strong>_ACTIVITY_MEMORY_KIND_DEVICE = 3,<strong>CUPTI</strong>_ACTIVITY_MEMORY_KIND_ARRAY = 4 }The kinds of memory accessed by a memory copy.Functions◮ CUptiResult cuptiActivityDequeueBuffer (CUcontext context, uint32_t streamId,uint8_t ∗∗buffer, size_t ∗validBufferSizeBytes)Dequeue a buffer containing activity records.◮ CUptiResult cuptiActivityDisable (CUpti_ActivityKind kind)Disable collection of a specific kind of activity record.◮ CUptiResult cuptiActivityEnable (CUpti_ActivityKind kind)Enable collection of a specific kind of activity record.◮ CUptiResult cuptiActivityEnqueueBuffer (CUcontext context, uint32_t streamId,uint8_t ∗buffer, size_t bufferSizeBytes)Queue a buffer for activity record collection.◮ CUptiResult cuptiActivityGetNextRecord (uint8_t ∗buffer, size_tvalidBufferSizeBytes, CUpti_Activity ∗∗record)Iterate over the activity records in a buffer.◮ CUptiResult cuptiActivityGetNumDroppedRecords (CUcontext context, uint32_tstreamId, size_t ∗dropped)Get the number of activity records that were dropped from a queue because of insufficientbuffer space.◮ CUptiResult cuptiActivityQueryBuffer (CUcontext context, uint32_t streamId,CUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 33