赞
踩
- wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
- 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
安装成功会出现下面的内容
- #安装好后需要配置下环境变量:
- sudo vi ~/.bashrc
-
- #在文件最后添加
- export PATH=/usr/local/cuda-12.1/bin${PATH:+:${PATH}}
- export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- export CUDA_HOME=/usr/local/cuda
-
-
- #保存,并输入
- source ~/.bashrc
- #生效
-
- #最后输出nvcc -V测试:
参考链接:https://blog.csdn.net/m0_60028455/article/details/124626130
安装成功会出现下面的内容
- #安装好后需要配置下环境变量:
- sudo vi ~/.bashrc
-
- #在文件最后添加
- export PATH=/usr/local/cuda-12.1/bin${PATH:+:${PATH}}
- export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- export CUDA_HOME=/usr/local/cuda
-
-
- #保存,并输入
- source ~/.bashrc
- #生效
-
- #最后输出nvcc -V测试:
=================================end=====================================
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。