cuda.bindings._v2.driver.stream_get_dev_resource#

cuda.bindings._v2.driver.stream_get_dev_resource(intptr_t h_stream, int type)#

Get stream resources.

Get the typename resources available to the h_stream and store them in resource. Note: The API will return CUDA_ERROR_INVALID_RESOURCE_TYPE is typename is CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG or CU_DEV_RESOURCE_TYPE_WORKQUEUE.

Parameters:
  • h_stream (intptr_t) – Stream to get resource for.

  • type (DevResourceType) – Type of resource to retrieve.

Returns:

Output pointer to a CUdevResource structure.

Return type:

CUdevResource_v1

See also

cuStreamGetDevResource