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
*piwhether execution affinity typetypenameis supported by devicedev. 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:
type (ExecAffinityType) – Execution affinity type to query.
dev (int) – Device handle.
- Returns:
- 1 if the execution affinity type
typenameis supported by the device, or 0 if not.
- 1 if the execution affinity type
- Return type:
See also
cuDeviceGetExecAffinitySupport