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
typenameresources available to theh_streamand store them inresource. Note: The API will returnCUDA_ERROR_INVALID_RESOURCE_TYPEistypenameisCU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIGorCU_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
CUdevResourcestructure.- Return type:
CUdevResource_v1
See also
cuStreamGetDevResource