cuda.bindings._v2.driver.device_get_dev_resource#

cuda.bindings._v2.driver.device_get_dev_resource(int device, int type)#

Get device resources.

Get the typename resources available to the device. This may often be the starting point for further partitioning or configuring of resources. Note: The API is not supported on 32-bit platforms.

Parameters:
  • device (int) – Device to get resource for.

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

Returns:

Output pointer to a CUdevResource structure.

Return type:

CUdevResource_v1

See also

cuDeviceGetDevResource