Skip to main content

cuDeviceGetDevResource

Function cuDeviceGetDevResource 

Source
pub unsafe extern "C" fn cuDeviceGetDevResource(
    device: CUdevice,
    resource: *mut CUdevResource,
    type_: CUdevResourceType,
) -> CUresult
Expand description

Get device resources.

Get the type 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: Device to get resource for.
  • resource: Output pointer to a CUdevResource structure.
  • type_: Type of resource to retrieve.

§Return value

See also: cuDevResourceGenerateDesc.