cuda.bindings._v2.driver.ctx_get_exec_affinity#
- cuda.bindings._v2.driver.ctx_get_exec_affinity(int type)#
Returns the execution affinity setting for the current context.
Returns in
*p_exec_affinitythe current value oftypename. The supportedCUexecAffinityTypevalues are:.CU_EXEC_AFFINITY_TYPE_SM_COUNT: number of SMs the context is limited to use.
- Parameters:
type (ExecAffinityType) – Execution affinity type to query.
- Returns:
Returned execution affinity.
- Return type:
See also
cuCtxGetExecAffinity