当前位置:网站首页>CUDA11.1在线安装
CUDA11.1在线安装
2022-07-06 04:59:00 【不瘦8斤的妥球球饼】
一. 查看自己的ubuntu配置适合哪个版本的CUDA
在terminal中输入如下代码:
nvidia-smi
显示如下:
如红色标记,,本机配置最大版本可以安装到11.6,所以CUDA version11.6一下都可以安装,本次决定安装 version 11.1。
二.在nvidia官网下载cuda版本11.1.1,并安装
地址为https://developer.nvidia.com/cuda-toolkit-archive。建议采用runfile(local)方式下载安装。安装cuda时,不要选中安装driver,其余都选中安装。
ubuntu查看版本信息的方法:首先进入Ubuntu系统,使用快捷键【Ctrl+Alt+t】打开终端;然后在终端中输入“cat /proc/version”命令或“uname -a”命令或“lsb_release -a”命令即可查看。
下载并安装:
wget https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.runsudo
sh cuda_11.1.1_455.32.00_linux.run
在执行sh cuda_11.1.1_455.32.00_linux.run的过程中,
问到:您接受之前阅读的EULA吗?输入accept
Do you accept the previously read EULA?
accept/decline/quit: accept
问到:是否安装NVIDIA加速图形驱动程序?如果已经安装就输入n,否则y,这里我选择n
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 410.48?
(y)es/(n)o/(q)uit: n
关于是否安装驱动,可以查看是否自己已经有了(使用 nvidia-sim 命令),如果没有可以安装。
问到:安装CUDA 11.1工具包?输入y
Install the CUDA 11.1 Toolkit?
(y)es/(n)o/(q)uit: y
Enter Toolkit Location
[ default is /usr/local/cuda-11.1 ]:直接Enter键
以下自愿,关于是否要在/usr/local/cuda上安装符号链接?以及安装CUDA 11.1示例?
Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y
Install the CUDA 11.1 Samples?
(y)es/(n)o/(q)uit: y
安装完成:
三.将CUDA的目录设置到PATH
在terminal中输入
sudo gedit ~/.bashrc
修改bashrc
export CUDA_HOME=/usr/local/cuda-11.1
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
export PATH=${CUDA_HOME}/bin:${PATH}
最后,打开terminal,输入(让路径生效)
source ~/.bashrc
四. 测试CUDA
输入
cd /usr/local/cuda-11.1/samples/1_Utilities/deviceQuery
sudo make
sudo ./deviceQuery
如果输出Result=PASS 则成功。
参考链接:
[Linux] CUDA 安装(二)-------正式安装cuda version 10.0_挪威的深林的博客-CSDN博客_linux安装cuda
边栏推荐
- Upload nestjs configuration files, configure the use of middleware and pipelines
- Summary of three log knowledge points of MySQL
- EditorUtility.SetDirty在Untiy中的作用以及应用
- [数学建模] 微分方程--捕鱼业的持续发展
- Golang -- TCP implements concurrency (server and client)
- Postman assertion
- SQL注入漏洞(MSSQL注入)
- 2021RoboCom机器人开发者大赛(初赛)
- [buuctf.reverse] 159_[watevrCTF 2019]Watshell
- Pagoda configuration mongodb
猜你喜欢
GAMES202-WebGL中shader的編譯和連接(了解向)
Postman manage test cases
Extension of graph theory
Leetcode dynamic planning day 16
麦斯克电子IPO被终止:曾拟募资8亿 河南资产是股东
Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected
Ue5 small knowledge points to enable the setting of lumen
Compilation and connection of shader in games202 webgl (learn from)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Postman断言
随机推荐
GAMES202-WebGL中shader的编译和连接(了解向)
JS quick start (II)
ISP learning (2)
驱动开发——第一个HelloDDK
F12 solve the problem that web pages cannot be copied
关于es8316的音频爆破音的解决
饼干(考试版)
[mathematical modeling] differential equation -- sustainable development of fishing industry
也算是学习中的小总结
Postman manage test cases
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
EditorUtility. The role and application of setdirty in untiy
C'est un petit résumé de l'étude.
Bubble sort
[buuctf.reverse] 159_[watevrCTF 2019]Watshell
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Realize a binary read-write address book
也算是學習中的小總結
Driver development - hellowdm driver
Delete subsequence < daily question >