1. cuda一般安装在 /usr/local/cuda/ 路径下,该路径下有一个version.txt文档,里面记录了cuda的版本信息

    1
    cat  /usr/local/cuda/version.txt
  2. 使用nvcc指令

    1
    nvcc -V