cuda.bindings._v2.driver.green_ctx_get_dev_resource#

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

Get green context resources.

Get the typename resources available to the green context represented by h_ctx.

Parameters:
  • h_ctx (intptr_t) – Green 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

cuGreenCtxGetDevResource