Skip to main content

cudaDriverGetVersion

Function cudaDriverGetVersion 

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

Returns the latest version of CUDA supported by the driver.

Returns in *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 driverVersion is NULL.

ยงParameters

  • driverVersion: - Returns the CUDA driver version.