pub unsafe extern "C" fn cuCtxGetExecAffinity(
pExecAffinity: *mut CUexecAffinityParam,
type_: CUexecAffinityType,
) -> CUresultExpand description
Returns the execution affinity setting for the current context.
Returns in *pExecAffinity the current value of type. The supported CUexecAffinityType values are:
CUexecAffinityType_enum::CU_EXEC_AFFINITY_TYPE_SM_COUNT: number of SMs the context is limited to use.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
pExecAffinity: Returned execution affinity.type_: Execution affinity type to query.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY
See also: CUexecAffinityParam.