How to get the cuda version?

后端 未结 19 2172
囚心锁ツ
囚心锁ツ 2020-11-30 16:24

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

I found the manual of 4.0 under the installation directory but I\'m not sure whether

19条回答
  •  情歌与酒
    2020-11-30 16:41

    First you should find where Cuda installed.

    If it's a default installation like here the location should be:

    for ubuntu:

    /usr/local/cuda

    in this folder you should have a file

    version.txt

    open this file with any text editor or run:

    cat version.txt
    

    from the folder

    OR

     cat /usr/local/cuda/version.txt 
    

提交回复
热议问题