Function rcudnn_sys::cudaDriverGetVersion[][src]

pub unsafe extern "C" fn cudaDriverGetVersion(
    driverVersion: *mut c_int
) -> cudaError_t
Expand description

\brief Returns the latest version of CUDA supported by the driver

Returns in \p *driverVersion the latest version of CUDA supported by the driver. The version is returned as (1000 × major + 10 × minor). For example, CUDA 9.2 would be represented by 9020. If no driver is installed, then 0 is returned as the driver version.

This function automatically returns ::cudaErrorInvalidValue if \p driverVersion is NULL.

\param driverVersion - Returns the CUDA driver version.

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

\sa ::cudaRuntimeGetVersion, ::cuDriverGetVersion