当前位置:网站首页>Summary of the relationship among GPU, CUDA and cudnn
Summary of the relationship among GPU, CUDA and cudnn
2022-04-23 11:17:00 【Hold hands and wait for the wind to rise】
GPU, CUDA,cuDNN Summary of the relationship between the three
CPU and GPU

cpu and gpu Structure display
GPU( image processor ,Graphics Processing Unit) and CPU( a central processor ,Central Processing Unit) The main difference in design is GPU There are more units of operation ( Like the green one in the picture ALU), and Control and Cache Unit is not as good as CPU many , This is because GPU In parallel computing, each computing unit executes the same program , It doesn't take too much control .Cache Cells are used for data caching ,CPU Can pass Cache To reduce the number of access to main memory , That is to reduce memory latency (memory latency).GPU in Cache Very small or not , because GPU Memory latency can be reduced by parallel computing . therefore CPU Of Cahce The design is mainly to achieve low latency ,Control Mainly versatility , Complex logic control unit can guarantee CPU Distribute tasks and instructions efficiently . therefore CPU Good at logic control , It's serial computing , and GPU Good at high-intensity computing , It's parallel computing . For example ,GPU Like thousands of coolies , Everyone does the same kind of drudgery , There is no dependence on each other , They're all independent , Simple people are more powerful ;CPU It's like a contractor , Although I can also do coolie work , But there are fewer people , So they are generally responsible for task allocation , Personnel scheduling, etc .
It can be seen that GPU Acceleration is achieved by a large number of threads in parallel , So for work that cannot be highly parallelized ,GPU It doesn't work . and CPU It's a serial operation , It needs to be very versatile , It mainly plays the role of unified management and assignment of tasks .
CUDA
CUDA yes NVIDIA Launched for home GPU The framework of parallel computing , in other words CUDA Only in NVIDIA Of GPU Up operation , And only when the computing problem to be solved is a large number of parallel computing can play CUDA The role of .
cuDNN
cuDNN(CUDA Deep Neural Network library): yes NVIDIA The acceleration library for deep neural network is built , It's a deep neural network GPU Acceleration Library . If you want to use GPU Training models ,cuDNN It's not necessary , But we usually use this acceleration library .
summary
Simply speaking ,CPU Suitable for serial computing , Good at logic control .GPU Good at high-intensity parallel computing , Apply to AI Algorithm training and learning
CUDA yes NVIDIA A framework dedicated to managing the allocation of computing units
cuDNN It is used for deep neural networks gpu Acceleration Library
Query version command :
ubuntu:
cuda edition
nvcc -V
cat /usr/local/cuda/version.txt
cudnn edition
cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
see Nvidia GPU edition
nvidia-smi
//10s Show once
watch -n 10 nvidia-smi
nvidia-smi -l
版权声明
本文为[Hold hands and wait for the wind to rise]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231116328538.html
边栏推荐
- 26. 删除有序数组中的重复项
- Mysql中有关Datetime和Timestamp的使用总结
- 卷积层和池化层总结
- MBA-day5数学-应用题-工程问题
- FileProvider 路径配置策略的理解
- MySQL数据库事务transaction示例讲解教程
- Learn go language 0x03: understand the dependency between variables and initialization order
- 关于JUC三大常用辅助类
- Implementation of partition table of existing data table by MySQL
- MySQL sorting feature details
猜你喜欢

Microsoft Access database using PHP PDO ODBC sample

采用百度飞桨EasyDL完成指定目标识别

Usage of rename in cygwin

Visual common drawing (V) scatter diagram

得物技术网络优化-CDN资源请求优化实践

Get things technology network optimization - CDN resource request Optimization Practice

Cygwin 中的 rename 用法

Learn go language 0x04: Code of exercises sliced in go language journey

使用 PHP PDO ODBC 示例的 Microsoft Access 数据库

MySQL Router重装后重新连接集群进行引导出现的——此主机中之前已配置过的问题
随机推荐
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
Microsoft Access database using PHP PDO ODBC sample
学习网站资料
Mysql database transaction example tutorial
语雀文档编辑器将开源:始于但不止于Markdown
Constraintlayout layout
初探 Lambda Powertools TypeScript
CUMCM 2021-B:乙醇偶合制備C4烯烴(2)
Usage of rename in cygwin
CUMCM 2021-B:乙醇偶合制备C4烯烃(2)
Go interface usage
VM set up static virtual machine
SVN的使用:
Mba-day5 Mathematics - application problems - engineering problems
妊娠箱和分娩箱的区别
QT信号量 无法解析的错误的总结
mysql分表之后如何平滑上线详解
Jupyter lab top ten high productivity plug-ins
Google Earth engine (GEE) - scale up the original image (taking Hainan as an example)
Learn go language 0x04: Code of exercises sliced in go language journey