当前位置: 首页 > news >正文

【深度学习环境】NVIDIA Driver、Cuda和Pytorch(centos9机器,要用到显示器)

文章目录

  • 一 、Anaconda install
  • 二、 NIVIDIA driver install
  • 三、 Cuda install
  • 四、Pytorch install

一 、Anaconda install

Step 1

Go to the official website:

https://www.anaconda.com/download

Input your email and submit.

Step 2

Select your version, and click it to download.

二、 NIVIDIA driver install

Step 1

Go to the official website.

https://www.nvidia.cn/geforce/drivers/

Step 2

Select the version that matches your GPU, and then click search.


Step 3

Download it.

Step 4

Add an executable permission to this run file.

sudo chmod +x NVIDIA-Linux-x86_64-550.142.run

Execute it.

sudo ./NVIDIA-Linux-x86_64-550.142.run

Step 5

disable the ‘nouveau’.

Please refer to this article.

https://developer.aliyun.com/article/1430626

Step 6

Close the Secure Boot mode. (Must use the display screen).

Execute instruction:

sudo systemctl reboot --firmware-setup

This command will restart the computer and go to BIOS Settings, turning off the Secure Boot.

Please refer to this article.

https://blog.csdn.net/qq_43222384/article/details/125998688

三、 Cuda install

Step 1

Go to the official website.

https://developer.nvidia.com/cuda-downloads

Choose your operating system etc.

Then, you could copy the instruction.


Execute it.

Step 2

Add an executable permission to this run file.

sudo chmod +x cuda_12.6.3_560.35.05_linux.run

Execute it.

sudo ./cuda_12.6.3_560.35.05_linux.run

During execution, you need to type ‘accept’.

Step 3

Set environment variables.

vim ~/.bashrc

Insert such content.

export PATH="/usr/local/cuda-12.6/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda-12.6/lib64:$LD_LIBRARY_PATH"

四、Pytorch install

See another article:

https://jhguo.blog.csdn.net/article/details/144742764?spm=1001.2014.3001.5502

http://www.lryc.cn/news/512210.html

相关文章:

  • Cocos Creator 3.8.5 正式发布,更小更快更多平台!
  • Python中构建终端应用界面利器——Blessed模块
  • Android 15 状态栏闹钟图标不显示问题修复
  • 数据采集背后的效率革命:如何优化你的爬虫性能
  • 【Compose multiplatform教程06】用IDEA编译Compose Multiplatform常见问题
  • 《计算机组成及汇编语言原理》阅读笔记:p128-p132
  • 使用 OpenCV 在图像中添加文字
  • 实现某海外大型车企(T)Cabin Wi-Fi 需求的概述 - 4
  • Linux系统:内核态与用户态的深层思考
  • # 光速上手 - JPA 原生 sql DTO 投影
  • ASP.NET Web应用程序出现Maximum request length exceeded报错
  • HTML——16.相对路径
  • windows 默认的消息ID有那些---我与大模型对话
  • CSV vs 数据库:爬虫数据存储的最佳选择是什么
  • 编译原理学习笔记——CH7-Runtime Environments运行时环境
  • 机器学习DAY7: 特征工程和特征选择(数据预处理)(完)
  • vue3动态加载组件
  • 12.29 redis缓存一致性
  • SqlSugar配置连接达梦数据库集群
  • 评分模型在路网通勤习惯分析中的应用——提出问题(1)
  • 使用 OpenCV 绘制线条和矩形
  • npm 切换镜像源
  • CSS(四)display和float
  • MMaudio AI:如何通过 AI 实现精准的视频到音频合成
  • SQL进阶技巧:如何分析双重职务问题?
  • OpenCV相机标定与3D重建(37)计算两幅图像之间单应性矩阵(Homography Matrix)的函数findHomography()的使用
  • Nacos配置管理+共享配置、配置热更新
  • asp.net core系统记录当前在线人数
  • 秒杀场景的设计思考
  • 快速掌握Haproxy原理架构