Function cudaRuntimeGetVersion

Source
pub unsafe extern "C" fn cudaRuntimeGetVersion(
    runtimeVersion: *mut c_int,
) -> cudaError_t
Expand description

\brief Returns the CUDA Runtime version

Returns in \p *runtimeVersion 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.

This function automatically returns ::cudaErrorInvalidValue if the \p runtimeVersion argument is NULL.

\param runtimeVersion - Returns the CUDA Runtime version.

\return ::cudaSuccess, ::cudaErrorInvalidValue \note_init_rt \note_callback

\sa ::cudaDriverGetVersion, ::cuDriverGetVersion