当前位置:网站首页>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
边栏推荐
- 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
- ISP learning (2)
- Ue5 small knowledge points to enable the setting of lumen
- [lgr-109] Luogu may race II & windy round 6
- Bubble sort
- RT thread analysis log system RT_ Kprintf analysis
- Postman manage test cases
- GAMES202-WebGL中shader的编译和连接(了解向)
- MySQL if and ifnull use
- Sorting out the knowledge points of multicast and broadcasting
猜你喜欢
Fuzzy -- basic application method of AFL
Basic knowledge and examples of binary tree
图论的扩展
Postman关联
A blog to achieve embedded entry
What are the advantages of the industry private network over the public network? What specific requirements can be met?
GAMES202-WebGL中shader的编译和连接(了解向)
L'introduction en bourse de MSK Electronics a pris fin: 800 millions de RMB d'actifs de Henan étaient des actionnaires
RT thread analysis - object container implementation and function
Extension of graph theory
随机推荐
【LGR-109】洛谷 5 月月赛 II & Windy Round 6
DMA use of stm32
Finance online homework
ORM aggregate query and native database operation
力扣(LeetCode)186. 翻转字符串里的单词 II(2022.07.05)
Ad20 is set with through-hole direct connection copper sheet, and the bonding pad is cross connected
Some common skills on unity inspector are generally used for editor extension or others
行业专网对比公网,优势在哪儿?能满足什么特定要求?
麦斯克电子IPO被终止:曾拟募资8亿 河南资产是股东
Supreme Court, judgment standard of divorce cases
内核判断i2c地址上是否挂载外设
MySQL if and ifnull use
[buuctf.reverse] 159_[watevrCTF 2019]Watshell
A blog to achieve embedded entry
最高法院,离婚案件判决标准
[05-1, 05-02, 05-03] network protocol
Compilation et connexion de shader dans games202 - webgl (comprendre la direction)
Collection + interview questions
Redis 排查大 key 的4種方法,優化必備
Embedded development program framework