How to get the cuda version?

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

    We have three ways to check Version: In my case below is the output:- Way 1:-

    cat /usr/local/cuda/version.txt
    

    Output:-

    CUDA Version 10.1.243
    

    Way2:-

    nvcc --version
    

    Output:-

    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
    

    Way3:-

    /usr/local/cuda/bin/nvcc --version
    

    Output:-

    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2019 NVIDIA Corporation
    Built on Sun_Jul_28_19:07:16_PDT_2019
    Cuda compilation tools, release 10.1, V10.1.243
    

    Way4:-

    nvidia-smi
    NVIDIA-SMI 450.36.06    Driver Version: 450.36.06    CUDA Version: 11.0
    

    Outputs are not same. Don't know why it's happening.

提交回复
热议问题