Function hip_runtime_sys::hipDevicePrimaryCtxSetFlags
source · pub unsafe extern "C" fn hipDevicePrimaryCtxSetFlags(
dev: hipDevice_t,
flags: c_uint
) -> hipError_tExpand description
@brief Set flags for the primary context.
@param [in] Device for which the primary context flags are set @param [in] New flags for the device
@returns #hipSuccess, #hipErrorContextAlreadyInUse
@see hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice