CUPTI User's Guide
CUPTI User's Guide
CUPTI User's Guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CUpti_ResourceData Type ReferenceData passed into a resource callback function.Data Fields◮ CUcontext context◮ void ∗ resourceDescriptor◮ CUstream streamDetailed DescriptionData passed into a resource callback function as the cbdata argument toCUpti_CallbackFunc. The cbdata will be this type for domain equal to<strong>CUPTI</strong>_CB_DOMAIN_RESOURCE. The callback data is valid only within theinvocation of the callback function that is passed the data. If you need to retain some datafor use outside of the callback, you must make a copy of that data.Field DocumentationCUcontext CUpti_ResourceData::contextFor <strong>CUPTI</strong>_CBID_RESOURCE_CONTEXT_CREATED and<strong>CUPTI</strong>_CBID_RESOURCE_CONTEXT_DESTROY_STARTING, the context beingcreated or destroyed. For <strong>CUPTI</strong>_CBID_RESOURCE_STREAM_CREATED and<strong>CUPTI</strong>_CBID_RESOURCE_STREAM_DESTROY_STARTING, the contextcontaining the stream being created or destroyed.void∗ CUpti_ResourceData::resourceDescriptorReserved for future use.CUstream CUpti_ResourceData::streamFor <strong>CUPTI</strong>_CBID_RESOURCE_STREAM_CREATED and<strong>CUPTI</strong>_CBID_RESOURCE_STREAM_DESTROY_STARTING, the stream beingcreated or destroyed.CUDA Tools SDK <strong>CUPTI</strong> User’s <strong>Guide</strong> DA-05679-001_v01 | 74