huadongw

查看linux中存在的cuda版本,进入/usr/local:

添加自己需要的cuda版本到环境变量, vim ~/.bashrc,添加以下内容到最后,如:

export PATH=/usr/local/cuda-10.1/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64:$LD_LIBRARY_PATH

 然后source一下使其生效

source ~/.bashrc 
nvcc -V

出现以下信息,则配置成功:

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

  

分类:

技术点:

相关文章:

  • 2021-09-29
  • 2021-11-20
  • 2022-02-09
  • 2022-02-09
  • 2022-02-09
  • 2022-02-09
猜你喜欢
  • 2021-12-15
  • 2021-11-04
  • 2021-11-28
  • 2022-02-09
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
相关资源
相似解决方案