当前位置:网站首页>[AI server setup] CUDA environment
[AI server setup] CUDA environment
2022-07-01 19:42:00 【blanklog】
be based on Ubuntu 18.04 System
One 、 install Nvidia drive
The basis of using graphics card , Use it directly ubuntu Warehouse installation
1. First, check the available drivers of the graphics card
ubuntu-drivers devices2. Install recommended drive
sudo apt install nvidia-driver-470-server3. Check to see if the installation was successful
nvidia-smi
Reference resources :Ubuntu Lower installation NVIDIA Three methods of driving _Willard Leozi The blog of -CSDN Blog _ubuntunvidia Drive installation official GeForce The driver | NVIDIA
Two 、 CUDA Environmental installation
Most of the AI The framework passes cuda api To use NVIDIA graphics card for high-performance computing ,cuda Developer website .
1. Go to CUDA Toolkit Post a journal Check the driver support cuda edition

2. Go to Historical release version Find what you need CUDA Version installed
Complete the installation according to the tutorial given on the official website

3. CUDA Environment variable configuration
If you only configure editing for the current user ~/.bashrc Add at the end
If it is configured for all users : stay /etc/profile.d/ New under the directory cuda11.4_env.sh And add
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH4. Test for successful installation
cuda There are some in the installation directory samples Program , You can try to compile and run .
cd /usr/local/cuda/samples/1_Utilities/deviceQuery
sudo make clean
sudo make -j8
./deviceQuery3. About unloading methods
CUDA Installation guide There is an unloading method in

3、 ... and 、 install cuDNN
cuDNN Is based on GPU Accelerated AI Operator Library .
1. First go cuDNN Website Create an account , Then go to Historical release Download corresponding in cuda Version of cuDNN library .

2. Unzip and download the installation package
Get one "cuda/" Catalog
tar xvf cudnn-11.4-linux-x64-v8.2.4.15.tgz3. install
Namely the cuda The contents of the directory are installed into the CUDA Toolkit In the installation directory of .
# Copy cudnn The header file
sudo cp cuda/include/* /usr/local/cuda-11.4/include/
# Copy cudnn The library of
sudo cp cuda/lib64/* /usr/local/cuda-11.4/lib64/
# Add... To all users cudnn.h Access rights of
sudo chmod a+r /usr/local/cuda-11.4/include/cudnn.h4. Check whether the installation is successful
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2If the version definition information appears, the installation succeeds .
Four 、 other
1. Graphics information
# View the graphics card device
lspci |grep -i nvidia
# Check the blind model
nvidia-smi
# View driver information
cat /proc/driver/nvidia/version2. CUDA Information
# 1. see cuda edition
nvcc -V
# 2. see cuda edition
cat /usr/local/cuda/version.txt
3. cuDNN Information
see cudnn.h The header file
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2边栏推荐
- How to configure webrtc video streaming format for easygbs, a new version of national standard gb28181 video platform?
- Object creation
- 新增订单如何防止重复提交
- H264编码profile & level控制
- How to correctly use vertx to operate redis (3.9.4 with source code analysis)
- Opencv video quality detection -- sharpness detection
- [English grammar] Unit1 articles, nouns, pronouns and numerals
- 研究了11种实时聊天软件,我发现都具备这些功能…
- 新版国标GB28181视频平台EasyGBS如何配置WebRTC视频流格式播放?
- Audio and video, encoding and decoding related e-books, gadgets, packaged for free!
猜你喜欢

What must be done in graduation season before going to Shanhai
![pickle. Load error [attributeerror: can't get attribute 'volatile' on < module '\u main']](/img/98/c4df0747856eda262b82942eedad8f.png)
pickle. Load error [attributeerror: can't get attribute 'volatile' on < module '\u main']

大厂音视频职位面试题目--今日头条

Regular expression =regex=regular expression

Axure does not display catalogs

How to solve the problem of splash screen when the main and sub code streams of easygbs are h.265?

Case sharing: basic networking configuration of QinQ

Crunch简介、安装,使用Crunch制作密码字典

DDR4 test-2

科技T3国产平台!成功搭载“翼辉国产实时系统SylixOS”
随机推荐
What must be done in graduation season before going to Shanhai
SQL 入门计划-1-选择
How to solve the problem of splash screen when the main and sub code streams of easygbs are h.265?
使用 Kibana Timelion 进行时间序列分析
2022/5/23-2022/5/30
精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会
直播HLS协议
测试自学人必看:软件测试如何找测试项目?
Optimization of video streaming with repeated requests in the case of unstable easygbs network
GC garbage collection
mysql 報錯 Can‘t create table ‘demo01.tb_Student‘ (errno: 150)*
brpc理解
SIP protocol of gb28181
Shell高级进阶
Task: denial of service DOS
Basic use of MySQL
Transaction isolation level gap lock deadlock
Thesis reading [distinctive late semantic graph for video capturing]
Wireshark packet analysis TCP, FTP
Why must we move from Devops to bizdevops?