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.
size_t ∗validBufferSizeBytes)Query the status of the buffer at the head of a queue.◮ CUptiResult cuptiGetStreamId (CUcontext context, CUstream stream, uint32_t∗streamId)Get the ID of a stream.Enumeration Type Documentationenum CUpti_ActivityComputeApiKindEnumerator:<strong>CUPTI</strong>_ACTIVITY_COMPUTE_API_UNKNOWN The compute API is notknown.<strong>CUPTI</strong>_ACTIVITY_COMPUTE_API_CUDA The compute APIs are for CUDA.<strong>CUPTI</strong>_ACTIVITY_COMPUTE_API_OPENCL The compute APIs are forOpenCL.enum CUpti_ActivityFlagActivity record flags. Flags can be combined by bitwise OR to associated multiple flagswith an activity record. Each flag is specific to a certain activity kind, as noted below.Enumerator:<strong>CUPTI</strong>_ACTIVITY_FLAG_NONEIndicates the activity record has no flags.<strong>CUPTI</strong>_ACTIVITY_FLAG_DEVICE_CONCURRENT_KERNELS Indicatesthe activity represents a device that supports concurrent kernel execution. Validfor <strong>CUPTI</strong>_ACTIVITY_KIND_DEVICE.<strong>CUPTI</strong>_ACTIVITY_FLAG_MEMCPY_ASYNCan asychronous memcpy operation. Valid for<strong>CUPTI</strong>_ACTIVITY_KIND_MEMCPY.enum CUpti_ActivityKindIndicates the activity representsEach activity record kind represents information about a GPU or an activity occurring ona CPU or GPU. Each kind is associated with a activity record structure that holds theinformation associated with the kind.See also:CUpti_ActivityCUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 34