当前位置:网站首页>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
边栏推荐
- Collection + interview questions
- Platformio create libopencm3 + FreeRTOS project
- yolov5 tensorrt加速
- What should the project manager do if there is something wrong with team collaboration?
- 也算是學習中的小總結
- The kernel determines whether peripherals are attached to the I2C address
- Nestjs配置文件上传, 配置中间件以及管道的使用
- [mathematical modeling] differential equation -- sustainable development of fishing industry
- It is also a small summary in learning
- Postman测试报告
猜你喜欢
行业专网对比公网,优势在哪儿?能满足什么特定要求?
Postman manage test cases
Sqlserver query results are not displayed in tabular form. How to modify them
[FreeRTOS interrupt experiment]
Postman断言
Compilation et connexion de shader dans games202 - webgl (comprendre la direction)
Lepton 无损压缩原理及性能分析
RT thread analysis log system RT_ Kprintf analysis
Application of Flody
比尔·盖茨晒18岁个人简历,48年前期望年薪1.2万美元
随机推荐
F12 solve the problem that web pages cannot be copied
Codeforces Round #804 (Div. 2)
Luogu deep foundation part 1 Introduction to language Chapter 2 sequential structure programming
web工程导入了mysql驱动jar包却无法加载到驱动的问题
Leetcode 186 Flip the word II in the string (2022.07.05)
[try to hack] John hash cracking tool
Supreme Court, judgment standard of divorce cases
Compilation and connection of shader in games202 webgl (learn from)
驱动开发——HelloWDM驱动
力扣(LeetCode)186. 翻转字符串里的单词 II(2022.07.05)
Postman管理测试用例
Postman manage test cases
Flody的应用
【LGR-109】洛谷 5 月月赛 II & Windy Round 6
Pagoda configuration mongodb
Yolov5 tensorrt acceleration
集合详解之 Collection + 面试题
Quick sort
Microservice resource address
最高法院,离婚案件判决标准