cuda.bindings._v2.driver.ctx_get_dev_resource#

cuda.bindings._v2.driver.ctx_get_dev_resource(intptr_t h_ctx, int type)#

Get context resources.

Get the typename resources available to the context represented by h_ctx Note: The API is not supported on 32-bit platforms.

Parameters:
  • h_ctx (intptr_t) – Context to get resource for.

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

Returns:

Output pointer to a CUdevResource structure.

Return type:

CUdevResource_v1

See also

cuCtxGetDevResource