Skip to main content

cuCtxSetFlags

Function cuCtxSetFlags 

Source
pub unsafe extern "C" fn cuCtxSetFlags(flags: c_uint) -> CUresult
Expand description

Sets the flags for the current context.

Sets the flags for the current context overwriting previously set ones. See cuDevicePrimaryCtxSetFlags for flag values.

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

§Parameters

  • flags: Flags to set on the current context

§Return value

See also: cuCtxCreate, cuCtxGetApiVersion, cuCtxGetCacheConfig, cuCtxGetCurrent, cuCtxGetDevice, cuCtxGetLimit, cuCtxGetSharedMemConfig, cuCtxGetStreamPriorityRange, cuCtxGetFlags, cudaGetDeviceFlags, cuDevicePrimaryCtxSetFlags.