当前位置:   article > 正文

ubuntu22 安装CUDA(run)(踩坑,如果装tensorRT,一定要选择deb的方式安装cuda)_existing package manager installation of the drive

existing package manager installation of the driver found. it is strongly │

 NVIDIA Developer

  1. wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
  2. sudo sh cuda_12.1.0_530.30.02_linux.run

若第1步提示Existing package manager installation of the driver found. It is strongly recommended that you remove this before continuing.,选择continue,在下一步中去除driver项,之后选择install:


————————————————
参考链接:https://blog.csdn.net/m0_60028455/article/details/124626130

 安装成功会出现下面的内容

  1. #安装好后需要配置下环境变量:
  2. sudo vi ~/.bashrc
  3. #在文件最后添加
  4. export PATH=/usr/local/cuda-12.1/bin${PATH:+:${PATH}}
  5. export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  6. export CUDA_HOME=/usr/local/cuda
  7. #保存,并输入
  8. source ~/.bashrc
  9. #生效
  10. #最后输出nvcc -V测试:

 

参考链接:https://blog.csdn.net/m0_60028455/article/details/124626130

 安装成功会出现下面的内容

  1. #安装好后需要配置下环境变量:
  2. sudo vi ~/.bashrc
  3. #在文件最后添加
  4. export PATH=/usr/local/cuda-12.1/bin${PATH:+:${PATH}}
  5. export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  6. export CUDA_HOME=/usr/local/cuda
  7. #保存,并输入
  8. source ~/.bashrc
  9. #生效
  10. #最后输出nvcc -V测试:

=================================end=====================================

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/649380
推荐阅读
相关标签
  

闽ICP备14008679号