当前位置:网站首页>Graphics card, GPU, CPU, CUDA, video memory, rtx/gtx and viewing mode
Graphics card, GPU, CPU, CUDA, video memory, rtx/gtx and viewing mode
2022-06-26 03:18:00 【MengYa_ Dream】
Learning resources :
CPU and GPU What's the difference ?https://zhuanlan.zhihu.com/p/156171120
Catalog
1 Visual visual memory understanding - video :CPU and GPU The difference between
2 The concept of graphics card
5 CPU and GPU The relationship between
6 CUDA and GPU The relationship between
1 Visual visual memory understanding - video :CPU and GPU The difference between
CPU: It can be understood that pigments are emitted successively , come together , An image that presents a smiling face , It takes a long time , Analogical CPU Calculation principle of , Step by step iterative calculation .
GPU: Multiple tubes of paint are emitted simultaneously , Draw a complete portrait , Time is spent in a moment , Analogical GPU Calculation principle of , Massive high parallel computing .
therefore , In experiments, we usually want to calculate in GPU In the middle of , Common code :
# select device
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
print("device: %s" % device)
You can see that... Does not appear in the code GPU, actually , It suggests that GPU and CUDA There is a certain connection between , The following is a detailed study record .
2 The concept of graphics card
The graphics card (Video card,Graphics card) Full name: display interface card , Also called display adapter , Is the most basic configuration of the computer 、 One of the most important accessories . Just like computer networking requires a network card , To display the data in the host on the screen, you need a graphics card . therefore , A graphics card is a device used by a computer to convert digital to analog signals , Undertake the task of outputting display graphics . say concretely , The graphics card is connected to the main board of the computer , It converts the digital signal of the computer into an analog signal for display . The original graphics card is generally integrated on the motherboard , Only complete the most basic signal output work , You don't have to deal with data . With the rapid development of graphics cards , And that's what happened GPU The concept of , Graphics cards are also divided into Independent graphics card and integrated graphics . The biggest difference between independent graphics card and integrated graphics card is in performance and power consumption . The former is more powerful , The latter is limited by integrated circuit and cost , Only the performance of top-level core display can reach the performance of entry-level unique display ; The former has independent video memory, and the latter adopts the shared video memory design with memory , It also affects performance ; The former is more powerful in power consumption , The latter has lower power consumption .
- Independent graphics card : Strong performance , Independent memory , High power consumption .
- integrated graphics : Weak performance , Share video memory with memory , Low power consumption .
3 GPU The concept of
GPU The concept is made up of Nvidia The company 1999 Put forward in .GPU It's a chip on the graphics card , It's like CPU It's a chip on the motherboard . that 1999 Years ago, there was no... On the graphics card GPU Do you ? Of course. , But no one named it at that time , It has not attracted enough attention , The development is relatively slow . since Nvidia Put forward GPU After this concept ,GPU Entered a period of rapid development . Simply speaking , It has gone through the following stages of development :
① For graphics rendering only , This function is GPU The purpose of ,Graphic Processing Unit, Graphic processing unit ;
②GPU It's too wasteful to use only for graphics processing , It should be used to do more work , For example, floating point operations . How to do it? ? Give the floating-point operation directly to GPU It can't be done , Because it can only be used for graphics processing ( At that time ). The easiest thing to think of , Is to do some processing of floating-point operation , Wrap into graphics rendering tasks , And then to GPU To do it . This is it. GPGPU(General Purpose GPU) The concept of . But there is one drawback , You must have some knowledge of graphics , Otherwise you don't know how to pack . In order for people who do not understand graphics to experience GPU The power of computation ,Nvidia The company has put forward CUDA The concept of .
4 CPU The concept of
a central processor (central processing unit, abbreviation CPU) As the computing and control core of computer system , It's information processing 、 The final execution unit of the program .
5 CUDA The concept of
CUDA(Compute Unified Device Architecture), General parallel computing architecture , It's a computing platform . It contains CUDA Instruction set architecture and GPU Internal parallel computing engine . All you have to do is use something like C Linguistic CUDA C Language , Can be developed CUDA Program , Thus, it can be used more conveniently GPU Powerful computing power , Instead of wrapping the computing task into a graphics rendering task as before , Give it to GPU Handle . Be careful , Not all GPU All support CUDA.
5 CPU and GPU The relationship between
In the absence of GPU Before , Basically, all tasks are assigned to CPU To do the . Yes GPU after , There is a division of labor between the two , CPU Responsible for logical processing and serial computing ,GPU It focuses on performing highly threaded parallel processing tasks ( Large scale computing tasks ). Why is there such a division of labor ? This is determined by the hardware composition of the two . It can be seen that , CPU yes “ Lord (host)” and GPU yes “ from (device)”,GPU No matter how fast it develops , It can only be for CPU Share the work , Instead of replacing CPU.
6 CUDA and GPU The relationship between
CUDA yes GPU Implementation tools for ;GPU yes CUDA The hardware foundation of .
7 Concept of video memory
memory , Also called frame cache , Its function is to store the rendering data processed or to be extracted by the graphics card chip . Just like the memory of a computer , Video memory is a part used to store graphic information to be processed . It can also be understood as the memory of the graphics card , Computer view graphics card method :16G memory
- win10 What's the model of the graphics card
- Win10 How to look at the computer graphics card memory
- RTX Than GTX New ray tracing feature rtx and gtx What's the difference?
I can't tell the model of the graphics card RTX and GTX What does that mean? ?
边栏推荐
- ORB-SLAM系列论文翻译笔记
- Preparation for wechat applet development
- todolist未完成,已完成
- How to delete gridlines in ggplot2 (with examples)
- [system architecture] - how to evaluate software architecture
- 在哪里开基金帐户安全?
- 经典模型——ResNet
- Interpreting Oracle
- 【解决】CMake was unable to find a build program corresponding to “Unix Makefiles“.
- Add console programs in UE
猜你喜欢
《你不可不知的人性》經典語錄
How to prompt
项目部署遇到的问题-生产环境
Matlab| short term load forecasting of power system based on BP neural network
论文回顾:Unmixing-Based Soft Color Segmentation for Image Manipulation
MySQL开发环境
Camtasia 2022 nouvelle vidéo d'ordinateur d'enregistrement ultra - clair
On virtual memory and oom in project development
学习太极创客 — MQTT(五)发布、订阅和取消订阅
Learn from Taiji makers - mqtt (V) publish, subscribe and unsubscribe
随机推荐
How to add a table to a drawing in ggplot2
Oracle exercise
Translation notes of orb-slam series papers
MySQL updates records based on the queried data
上传文件/文本/图片,盒子阴影
【哈希表】改进,拉链法哈希结构——直接用两个索引查找,不用每次都hash和%一遍
Butterknife unbinder uses flashback in fragment and viewpager
论文回顾:Unmixing-Based Soft Color Segmentation for Image Manipulation
【论文笔记】Manufacturing Control in Job Shop Environments with Reinforcement Learning
Overview of orb-slam3 paper
I am in Zhongshan. Where can I open an account? Is it safe to open an account online?
Matlab| short term load forecasting of power system based on BP neural network
如何提词条
如何筹备一场感人的婚礼
[flask introduction series] flask processing request and response
虫子 拷贝构造 运算符重载
arduino字符串转16进制数 大彩串口屏用。
Oracle connectivity issues and Solutions
Google recommends using kotlin flow in MVVM architecture
Notes on the 3rd harmonyos training in the studio