Function cuGreenCtxGetDevResource

Source
pub unsafe extern "C" fn cuGreenCtxGetDevResource(
    hCtx: CUgreenCtx,
    resource: *mut CUdevResource,
    type_: CUdevResourceType,
) -> CUresult
Expand description

\brief Get green context resources

Get the \p type resources available to the green context represented by \p hCtx \param hCtx - Green context 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_CONTEXT, ::CUDA_ERROR_INVALID_RESOURCE_TYPE, ::CUDA_ERROR_INVALID_VALUE

\sa ::cuDevResourceGenerateDesc