当前位置:网站首页>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
边栏推荐
- MySQL if and ifnull use
- [lgr-109] Luogu may race II & windy round 6
- Quelques conseils communs sur l'inspecteur de l'unit é, généralement pour les extensions d'éditeur ou d'autres
- GAMES202-WebGL中shader的編譯和連接(了解向)
- Luogu deep foundation part 1 Introduction to language Chapter 2 sequential structure programming
- Pagoda configuration mongodb
- Platformio create libopencm3 + FreeRTOS project
- 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
- 从0到1建设智能灰度数据体系:以vivo游戏中心为例
- Postman Association
猜你喜欢
Programmers' position in the Internet industry | daily anecdotes
Extension of graph theory
Zynq learning notes (3) - partial reconfiguration
Crazy God said redis notes
Cve-2019-11043 (PHP Remote Code Execution Vulnerability)
Three methods of Oracle two table Association update
Distributed transaction solution
[05-1, 05-02, 05-03] network protocol
acwing周赛58
Bill Gates posted his 18-year-old resume and expected an annual salary of $12000 48 years ago
随机推荐
Three methods of Oracle two table Association update
[classic example] binary tree recursive structure classic topic collection @ binary tree
It is also a small summary in learning
2021 robocom world robot developer competition - undergraduate group (semi-finals)
EditorUtility.SetDirty在Untiy中的作用以及应用
Basic knowledge and examples of binary tree
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
Set detailed map + interview questions
Redis 排查大 key 的4種方法,優化必備
集合详解之 Collection + 面试题
Acwing week 58
2021 RoboCom 世界机器人开发者大赛-本科组(复赛)
[NOIP2008 提高组] 笨小猴
Fuzzy -- basic application method of AFL
Leetcode 186 Flip the word II in the string (2022.07.05)
[NOIP2009 普及组] 分数线划定
Bubble sort
程序员在互联网行业的地位 | 每日趣闻
驱动开发——HelloWDM驱动
Vite configures the development environment and production environment