当前位置:网站首页>cuDNN installation
cuDNN installation
2022-06-24 04:58:00 【vanguard】
NVIDIA cuDNNis a GPU-accelerated library of primitives for deep neural networks.
- Hardware preparation ( Power Supply + a main board + processor + Fan + Memory + External storage /NVMESSD/HDD+Nvidia The graphics card )
- Operating system and tool installation (Ubuntu20.04+update+net-tools+ssh+vim+python3-pip+samba+git+xrdp+virtualenv)
- Graphics card driver and NVIDIA software installation (Driver+CUDA+cuDNN+TensorRT)
- Rely on software and framework installation (tensorflow-gpu+pytorch+opencv-python+yolo...)
- Container or direct training models and reasoning (docker+nvidia-docker...)
cuDNN Installation process ( Now you need to log in to get this link )
wget https://developer.download.nvidia.cn/compute/machine-learning/cudnn/secure/8.2.2/11.4_07062021/cudnn-11.4-linux-x64-v8.2.2.26.tgz?zVO0xngn9RHkR6idYHi7_WjTxJhRatqOB0Tsrbzn-y1zIokHbv0PQO_U8XLu7aMydM33JWOczvkirvAZ9BNN-aqsIyCpxg5Vc_sbF6AF8K6lGSXQ-CZXUe6IBt-5mcsMERGmkvQACeYRwKLqk7xy76mzV9epqp5_EgFkNFt7RcvA0T97ozdTs6e63yabuR5LkFx-de-Oa6IPbuU tar xvf * sudo cp -a include/cudnn.h /usr/local/cuda/include/ sudo cp -a lib64/libcudnn* /usr/local/cuda/lib64/ # nvidia-smi # nvcc -V
Difficulty or CUDA Installation
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#removing-cuda-tk-and-driver
# To remove CUDA Toolkit: sudo apt-get --purge remove "*cublas*" "*cufft*" "*curand*" \ "*cusolver*" "*cusparse*" "*npp*" "*nvjpeg*" "cuda*" "nsight*" # To remove NVIDIA Drivers: sudo apt-get --purge remove "*nvidia*" # To clean up the uninstall: sudo apt-get autoremove
The drive shall be installed separately as far as possible , Because some do not rely on CUDA But depending on the driver, especially if you want to replace the native driver , Set the environment variable after installation
export PATH=/usr/local/cuda-11.4/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64\
${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
source ~/.bashIf not installed cuDNN, May skip GPU Use :
2021-08-26 19:55:22.789937: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-11.4/lib64 2021-08-26 19:55:22.790001: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1835] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices... 2021-08-26 19:55:22.790631: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2021-08-26 19:55:23.528475: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:185] None of the MLIR Optimization Passes are enabled (registered 2)
install cuDNN after , Can be used , Can also pass nvidia-smi Observe the usage of video memory, etc
2021-08-30 16:57:03.457415: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2021-08-30 16:57:05.198665: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1510] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 17540 MB memory: -> device: 0, name: NVIDIA GeForce RTX 3090, pci bus id: 0000:02:00.0, compute capability: 8.6 2021-08-30 16:57:06.848155: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:185] None of the MLIR Optimization Passes are enabled (registered 2) Epoch 1/5 2021-08-30 16:57:10.171347: I tensorflow/stream_executor/cuda/cuda_blas.cc:1760] TensorFloat-32 will be used for the matrix multiplication. This will only be logged once.
Mon Aug 30 17:17:31 2021 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... Off | 00000000:02:00.0 Off | N/A | | 35% 50C P2 109W / 350W | 23055MiB / 24265MiB | 1% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ | 1 NVIDIA GeForce ... Off | 00000000:82:00.0 Off | N/A | | 34% 44C P0 110W / 350W | 0MiB / 24268MiB | 2% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 5741 C python 23053MiB | +-----------------------------------------------------------------------------+
cuDNN
边栏推荐
- What technology is VPS? How does the server VPS?
- Develop a customized music player from scratch, and your girlfriend will have it?
- Introduction à la méthode de descente par Gradient - document d'apprentissage automatique pour les programmeurs de chevaux noirs
- How to select a suitable optical fiber tester
- 梯度下降法介紹-黑馬程序員機器學習講義
- How to change the IP address of ECS? What are the precautions for changing the IP address
- mini-Web框架:装饰器方式的添加路由 | 黑马程序员
- Loss and optimization of linear regression, machine learning to predict house prices
- How to build an ECS and how to control the server through the local host
- Introduction to gradient descent method - black horse programmer machine learning handout
猜你喜欢

解析90后创客教育的主观积极性

External network access SVN server (external network access SVN server deployed on the cloud)

梯度下降法介紹-黑馬程序員機器學習講義

Abnova peptide design and synthesis solutions

SAP MTS/ATO/MTO/ETO专题之八:ATO模式2 D+空模式策略用85

Leetcode (question 2) - adding two numbers

014_ TimePicker time selector

Facebook internal announcement: instant messaging will be re integrated

Idea creates a servlet and accesses the 404 message

少儿编程教育在特定场景中的普及作用
随机推荐
oracle数据库提示无操作权限的问题
Summary of Android interview questions in 2020 (intermediate)
Powerbi - for you who are learning
How to enlarge the ECS page? How to select ECS instance specifications?
Before creating an image, it is recommended to execute the following code to purify the image as an administrator
LeetCode 1791. Find the central node of the star chart
What is Ping? How can the server disable Ping?
Qiming cloud sharing: tips on esp32c3 simple IO and serial port
Abnova membrane protein lipoprotein solution
When remote, your resolution is lower than a × B. Some items may not be displayed on the screen
014_ TimePicker time selector
Share 10 creative projects of Gaoxing!
Abnova peptide design and synthesis solutions
Summary of Android interview questions in 2020 (elementary)
梯度下降法介绍-黑马程序员机器学习讲义
How to build a website for ECS is the price of ECS very expensive
Customer disaster recovery case - a MySQL database migration scheme
After purchasing Tencent ECs, how to solve packet loss in Internet access?
Shutter - how to copy certain elements from a map to a new map in dart/shutter?
How to open the port of ECS what are the precautions for using ECS