pub fn version() -> Result<i32>Expand description
Returns the 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.
ยงErrors
Returns an error if CUDA cannot query the driver version or if a previous asynchronous launch reported an error.