How to get the cuda version?

后端 未结 19 2134
囚心锁ツ
囚心锁ツ 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:33

    One can get the cuda version by typing the following in the terminal:

    $ nvcc -V
    
    # below is the result
    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2017 NVIDIA Corporation
    Built on Fri_Nov__3_21:07:56_CDT_2017
    Cuda compilation tools, release 9.1, V9.1.85
    

    Alternatively, one can manually check for the version by first finding out the installation directory using:

    $ whereis -b cuda         
    cuda: /usr/local/cuda
    

    And then cd into that directory and check for the CUDA version.

提交回复
热议问题