use crateErrorCode;
use runtime;
use crate::;
/// Returns the version number of the current CUDA Runtime instance.
/// The version is returned as (1000 major + 10 minor).
/// For example, CUDA 9.2 would be represented by 9020.
///
/// As of CUDA 12.0, this function no longer initializes CUDA.
/// The purpose of this API is solely to return a compile-time constant stating the CUDA Toolkit version in the above format.
///
/// Note:
///
/// * Note that this function may also return [`ErrorCode::NotInitialized`], [`ErrorCode::CallRequiresNewerDriver`] or [`ErrorCode::NoDevice`] if this call tries to initialize internal CUDA RT state.
/// * Note that as specified by [`Stream::add_callback`](crate::stream::Stream::add_callback) no CUDA function may be called from callback.
/// [`ErrorCode::NotPermitted`] may, but is not guaranteed to, be returned as a diagnostic in such case.