Function cuCtxGetExecAffinity

Source
pub unsafe extern "C" fn cuCtxGetExecAffinity(
    pExecAffinity: *mut CUexecAffinityParam,
    type_: CUexecAffinityType,
) -> CUresult
Expand description

\brief Returns the execution affinity setting for the current context.

Returns in \p *pExecAffinity the current value of \p type. The supported ::CUexecAffinityType values are:

  • ::CU_EXEC_AFFINITY_TYPE_SM_COUNT: number of SMs the context is limited to use.

\param type - Execution affinity type to query \param pExecAffinity - Returned execution affinity

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY \notefnerr

\sa ::CUexecAffinityParam