cuda.bindings._v2.driver.device_get_exec_affinity_support#

cuda.bindings._v2.driver.device_get_exec_affinity_support(int type, int dev) → int#

Returns information about the execution affinity support of the device.

Returns in *pi whether execution affinity type typename is supported by device dev. The supported types are:.

  • CU_EXEC_AFFINITY_TYPE_SM_COUNT: 1 if context with limited SMs is supported by the device, or 0 if not;.

Parameters:
Returns:

1 if the execution affinity type typename is supported by

the device, or 0 if not.

Return type:

int

See also

cuDeviceGetExecAffinitySupport