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_affinity the current value of typename. The supported CUexecAffinityType values 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:

CUexecAffinityParam_v1

See also

cuCtxGetExecAffinity