6.175. CUpti_ResourceData
-
struct CUpti_ResourceData
Data passed into a resource callback function.
Data passed into a resource callback function as the
cbdata
argument to CUpti_CallbackFunc. Thecbdata
will be this type fordomain
equal to CUPTI_CB_DOMAIN_RESOURCE. The callback data is valid only within the invocation of the callback function that is passed the data. If you need to retain some data for use outside of the callback, you must make a copy of that data.Public Members
-
CUcontext context
For CUPTI_CBID_RESOURCE_CONTEXT_CREATED and CUPTI_CBID_RESOURCE_CONTEXT_DESTROY_STARTING, the context being created or destroyed.
For CUPTI_CBID_RESOURCE_STREAM_CREATED and CUPTI_CBID_RESOURCE_STREAM_DESTROY_STARTING, the context containing the stream being created or destroyed.
-
CUstream stream
For CUPTI_CBID_RESOURCE_STREAM_CREATED and CUPTI_CBID_RESOURCE_STREAM_DESTROY_STARTING, the stream being created or destroyed.
-
void *resourceDescriptor
Reserved for future use.
-
CUcontext context