pub unsafe extern "C" fn cuDevicePrimaryCtxGetState(
dev: CUdevice,
flags: *mut c_uint,
active: *mut c_int,
) -> CUresult
Expand description
\brief Get the state of the primary context
Returns in \p *flags the flags for the primary context of \p dev, and in \p *active whether it is active. See ::cuDevicePrimaryCtxSetFlags for flag values.
\param dev - Device to get primary context flags for \param flags - Pointer to store flags \param active - Pointer to store context state; 0 = inactive, 1 = active
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_DEVICE, ::CUDA_ERROR_INVALID_VALUE, \notefnerr
\sa ::cuDevicePrimaryCtxSetFlags, ::cuCtxGetFlags, ::cuCtxSetFlags, ::cudaGetDeviceFlags