pub unsafe extern "C" fn cuDeviceGetDevResource(
device: CUdevice,
resource: *mut CUdevResource,
type_: CUdevResourceType,
) -> CUresultExpand 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 aCUdevResourcestructure.type_: Type of resource to retrieve.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_RESOURCE_TYPECUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_DEVICE
See also: cuDevResourceGenerateDesc.