pub unsafe extern "C" fn cuDeviceGetExecAffinitySupport(
pi: *mut c_int,
type_: CUexecAffinityType,
dev: CUdevice,
) -> CUresultExpand description
Returns information about the execution affinity support of the device.
Returns in *pi whether execution affinity type type is supported by device dev. The supported types are:
CUexecAffinityType_enum::CU_EXEC_AFFINITY_TYPE_SM_COUNT: 1 if context with limited SMs is supported by the device, or 0 if not;.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
pi: 1 if the execution affinity typetypeis supported by the device, or 0 if not.type_: Execution affinity type to query.dev: Device handle.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_DEVICE
See also: cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGetUuid, cuDeviceGet, cuDeviceTotalMem.