Skip to main content

cuCtxGetExecAffinity

Function cuCtxGetExecAffinity 

Source
pub unsafe extern "C" fn cuCtxGetExecAffinity(
    pExecAffinity: *mut CUexecAffinityParam,
    type_: CUexecAffinityType,
) -> CUresult
Expand description

Returns the execution affinity setting for the current context.

Returns in *pExecAffinity the current value of type. The supported CUexecAffinityType values are:

Note that this function may also return error codes from previous, asynchronous launches.

§Parameters

  • pExecAffinity: Returned execution affinity.
  • type_: Execution affinity type to query.

§Return value

See also: CUexecAffinityParam.