How to get the cuda version?

Is there any quick command or script to check for the version of the installed CUDA?

I found the manual of 4.0 under the installation directory, but not sure whether the actual installed version is that or not.


As Jared mentions in a comment, from the command line:

nvcc --version

gives the CUDA compiler version (which matches the toolkit version).

From application code, you can query the runtime API version with

cudaRuntimeGetVersion()

or the driver API version with

cudaDriverGetVersion()

As Daniel points out, deviceQuery is an SDK sample app that queries the above, along with device capabilities.


在Ubuntu Cuda V8上:

$ cat /usr/local/cuda/version.txt

如果你已经安装了CUDA SDK,你可以运行“deviceQuery”来查看CUDA的版本

链接地址: http://www.djcxy.com/p/38528.html

上一篇: 计算机视觉应用的CUDA性能比较

下一篇: 如何获得cuda版本?