Function cuDeviceGetDevResource

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

\brief Get device resources

Get the \p type resources available to the \p 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.

\param device - Device to get resource for \param resource - Output pointer to a CUdevResource structure \param type - Type of resource to retrieve

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_RESOURCE_TYPE, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_DEVICE

\sa ::cuDevResourceGenerateDesc