# 图形处理器

图形处理器（GPU）是一种专用电子电路，旨在快速并行执行大量计算，最初用于实时3D图形渲染，如今也用于深度学习和科学模拟等通用计算任务。GPU最初是作为固定功能硬件来加速实时3D渲染中的并行运算，在后续几代产品中逐渐变得更加可编程，自2006年起已可独立于图形API对任意计算工作负载进行编程。<sup>[1](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 首款上市的GPU | NVIDIA GeForce 256，1999年8月31日发布，被称为全球首个图形处理器<sup>[2](https://mmgik.org/images/almanach/agp/przypisy/NVIDIA%20LAUNCHES%20THE%20WORLDS%20FIRST%20GRAPHICS%20PROCESSING%20UNIT%20GEFORCE%20256.pdf)</sup> |
| 首批可编程着色器 | GeForce 3（2001年2月），首款支持DirectX 8.0像素和顶点着色器的GPU<sup>[3](https://www.tomshardware.com/pc-components/gpus/the-geforce3-launched-25-years-ago-underappreciated-at-launch-its-impact-shaped-the-industry)</sup> |
| 通用计算 | NVIDIA于2006年推出CUDA，2006年11月首次发布，附带基于C的软件环境<sup>[1](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html)</sup><sup> • </sup><sup>[4](https://developer.nvidia.com/blog/cuda-refresher-getting-started-with-cuda/)</sup> |
| 核心组织 | 流式多处理器（SM）分组为图形处理集群（GPC）；每个SM包含一个寄存器文件、一个统一数据缓存和若干功能单元<sup>[5](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/programming-model.html)</sup> |
| 规模示例 | NVIDIA A100：108个SM，40 MB二级缓存，80 GB HBM2内存提供最高2039 GB/s带宽，峰值稠密吞吐156 TF32 TFLOPS和312 FP16 TFLOPS<sup>[6](https://docs.nvidia.com/deeplearning/performance/dl-performance-gpu-background/)</sup> |
| 内存选项 | 独立GPU配备专用显存；集成GPU在统一内存架构下共享部分系统内存<sup>[7](https://www.amd.com/en/resources/support-articles/faqs/PA-280.html)</sup> |

## 历史

**固定功能起源。** 最早的GPU是面向3D图形的专用处理器，作为固定功能硬件构建，用于加速实时渲染中的并行运算。NVIDIA于1999年8月31日发布的GeForce 256被宣传为全球首款GPU，在单芯片上集成了变换引擎、光照引擎和256位渲染引擎。<sup>[1](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html)</sup><sup> • </sup><sup>[2](https://mmgik.org/images/almanach/agp/przypisy/NVIDIA%20LAUNCHES%20THE%20WORLDS%20FIRST%20GRAPHICS%20PROCESSING%20UNIT%20GEFORCE%20256.pdf)</sup> 该芯片集成了2300万个晶体管。<sup>[8](https://download.nvidia.com/developer/presentations/2004/Perfect_Kitchen_Art/English_Evolution_of_GPUs.pdf)</sup> 其重大进步在于为消费级硬件提供了变换与光照（T&L）支持，将几何和光照计算从CPU卸载到GPU。<sup>[9](https://www.tomshardware.com/picturestory/464-nvidia-graphics-cards.html)</sup>

**可编程性。** 到2003年，图形管线的某些阶段已完全可编程，可为3D场景或图像的每个组件并行运行自定义代码。<sup>[1](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html)</sup> 2001年2月推出的GeForce 3是首款支持DirectX 8.0像素和顶点着色器的GPU，2004年4月的GeForce 6系列带来了DirectX 9.0c和Shader Model 3.0，支持GPU程序中的动态流控制。<sup>[3](https://www.tomshardware.com/pc-components/gpus/the-geforce3-launched-25-years-ago-underappreciated-at-launch-its-impact-shaped-the-industry)</sup>

**转向通用计算。** 2006年，NVIDIA推出统一计算设备架构（CUDA），使任何计算工作负载都能独立于图形API利用GPU的吞吐能力。<sup>[1](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html)</sup> CUDA的第一个版本于2006年11月发布，附带基于C的软件环境。<sup>[4](https://developer.nvidia.com/blog/cuda-refresher-getting-started-with-cuda/)</sup> 2006年底推出的GeForce 8系列引入了Tesla微架构，这是NVIDIA首个采用完全统一着色器的设计，像素和顶点着色器之间的区分消失，GPU成为完全可编程的处理器；它与CUDA第一版同步推出。<sup>[3](https://www.tomshardware.com/pc-components/gpus/the-geforce3-launched-25-years-ago-underappreciated-at-launch-its-impact-shaped-the-industry)</sup> 这一组合将大规模并行可编程处理器带入了数百万台PC，开辟了通用GPU（GPGPU）计算的道路。<sup>[3](https://www.tomshardware.com/pc-components/gpus/the-geforce3-launched-25-years-ago-underappreciated-at-launch-its-impact-shaped-the-industry)</sup>

## 架构

GPU是一种高度并行的处理器架构，由处理单元和内存层次结构组成。在NVIDIA GPU中，若干流式多处理器（SM）与片上二级缓存和提供高带宽的DRAM配合工作；SM执行算术和其他指令，并通过二级缓存访问DRAM中的数据与代码。<sup>[6](https://docs.nvidia.com/deeplearning/performance/dl-performance-gpu-background/)</sup> 在CUDA编程中，GPU被建模为一组SM的集合，这些SM组织为称为图形处理集群（GPC）的组。每个SM包含一个本地寄存器文件、一个物理上同时提供共享内存和一级缓存的统一数据缓存，以及若干功能单元；该缓存在一级缓存和共享内存之间的分配可在运行时配置。<sup>[5](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/programming-model.html)</sup>

**执行模型。** 内核启动会在GPU上启动大量线程并行执行内核代码。线程组织为线程块，线程块组织为网格；一个网格可包含数百万个线程块，而GPU只有数十或数百个SM。线程块的所有线程在单个SM上运行，CUDA模型要求线程块能以任意顺序执行，可并行也可串行，块之间没有数据依赖。<sup>[5](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/programming-model.html)</sup> SIMT（单指令多线程）架构类似于SIMD向量组织，即单条指令控制多个处理单元。<sup>[10](https://docs.nvidia.com/cuda/archive/11.0_GA/cuda-c-programming-guide/index.html)</sup>

**内存层次。** CUDA设备暴露多个具有不同作用域和生命周期的内存空间：全局内存（设备内存，所有线程可访问，在应用程序运行期间持久存在）、常量和纹理内存（只读，网格作用域）、共享内存（块作用域，位于每个SM上，带宽高于全局内存、延迟低于全局内存）、本地内存（线程作用域）和寄存器（线程作用域，位于SM上）。<sup>[11](https://docs.nvidia.com/cuda/cuda-programming-guide/02-basics/writing-cuda-kernels.html)</sup> 带宽是制约GPU性能的最重要因素之一，它很大程度上取决于数据存放在哪种内存中以及访问的布局方式。<sup>[12](https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html?highlight=local+memory)</sup>

**专用单元。** 张量核心（Tensor Core）在NVIDIA Volta GPU架构中引入，加速机器学习和科学应用中的矩阵乘加运算，作用于4x4等小矩阵块。在较新的架构上，FP16运算可在张量核心或CUDA核心中执行，Turing架构可在这两种核心中的任一种上执行INT8运算。<sup>[6](https://docs.nvidia.com/deeplearning/performance/dl-performance-gpu-background/)</sup> Turing RTX架构于2018年随GeForce RTX 2080 Ti首次推出，为GPU增加了实时光线追踪和AI能力。<sup>[13](https://images.nvidia.com/aem-dam/Solutions/geforce/ada/ada-lovelace-architecture/nvidia-ada-gpu-science.pdf)</sup>

## 编程

CUDA是GPU通用计算的并行计算平台和编程模型，广泛应用于深度学习、科学计算和高性能计算。<sup>[14](https://docs.nvidia.com/cuda/cuda-programming-guide/index.html)</sup> 应用程序始终从CPU开始执行；主机代码使用CUDA API在主机和设备内存之间复制数据、在GPU上启动内核并等待完成。CPU和GPU可同时执行代码，最佳性能通常通过最大化两者的利用率来实现。<sup>[5](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/programming-model.html)</sup> 由于CUDA运行时独立调度线程块，应用程序无需修改代码即可在不同SM数量的GPU上透明扩展。<sup>[4](https://developer.nvidia.com/blog/cuda-refresher-getting-started-with-cuda/)</sup>

异构系统具有多个物理内存：主机CPU连接DRAM，每个GPU也有自己连接的DRAM，当数据位于访问它的处理器的内存中时性能最佳。CUDA提供跨主机和设备内存的统一虚拟地址空间，以及统一内存——这一特性允许受管分配的内存由CPU或GPU访问，并在两者之间自动迁移。<sup>[15](https://docs.nvidia.com/cuda/cuda-programming-guide/02-basics/understanding-memory.html?highlight=CUDA)</sup>

CUDA之外还存在竞争平台。AMD的CDNA架构是其Instinct计算GPU的基础，采用小芯片封装将计算裸片、堆叠HBM内存和I/O裸片组合在一起；Instinct MI300A APU在单一封装上统一了CPU和GPU小芯片，共享HBM3内存。<sup>[16](https://www.amd.com/en/technologies/cdna.html)</sup> AMD的RDNA架构为其Radeon图形产品提供动力，[RDNA 4](https://www.edgepedia.org/zh/rdna-4)增加了第三代光线追踪加速器和第二代AI加速器。<sup>[17](https://www.amd.com/en/technologies/rdna.html?trk=article-ssr-frontend-pulse_little-text-block)</sup>

## 图形管线

渲染时，GPU执行可编程图形管线。在Direct3D 10模型中，输入装配阶段向管线提供三角形、线段和点等数据；顶点着色器阶段处理顶点，执行变换、蒙皮和光照等操作；几何着色器阶段处理整个图元，可丢弃图元或生成新图元；光栅化器裁剪图元并为像素着色器做准备；像素着色器阶段生成颜色等逐像素数据；输出合并阶段将像素着色器值与深度和模板信息结合，产生最终结果。<sup>[18](https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-pipeline-stages)</sup> 所有这些阶段均可使用[HLSL](https://www.edgepedia.org/zh/hlsl)语言编程，使管线灵活且适应性强。<sup>[18](https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-pipeline-stages)</sup>

## 独立GPU与集成GPU

独立GPU位于带有专用显存的板卡上，GPU使用该显存渲染游戏和应用程序。<sup>[7](https://www.amd.com/en/resources/support-articles/faqs/PA-280.html)</sup><sup> • </sup><sup>[19](https://www.amd.com/en/products/graphics/gaming/vram.html)</sup> 集成GPU在统一内存架构（UMA）下共享部分系统内存；这一共享分配（UMA帧缓冲区）的大小通常自动管理，可在系统BIOS中调整。<sup>[7](https://www.amd.com/en/resources/support-articles/faqs/PA-280.html)</sup> Intel集成显卡同样使用系统内存而非独立显存，显卡驱动程序与操作系统协作，根据当前工作负载在CPU和GPU之间分配内存。<sup>[20](https://www.intel.com/content/www/us/en/support/articles/000020962/graphics.html)</sup>

## 现代角色

GPU计算已被用于加速几乎所有类型的工作负载，从流体动力学和能量传输等科学模拟到数据库和分析等商业应用，GPU的能力和可编程性已成为从图像分类到扩散模型和大语言模型等生成式人工智能进步的基础。<sup>[1](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html)</sup> 在消费级图形领域，AI如今在单纯的渲染之外发挥辅助作用：NVIDIA的深度学习超级采样（DLSS）使用张量核心运行神经网络来提升游戏帧率，RTX 50系列的DLSS多帧生成使用AI为每个渲染帧生成最多五帧。<sup>[21](https://www.nvidia.com/en-us/geforce/news/nvidia-dlss-your-questions-answered/)</sup><sup> • </sup><sup>[22](https://developer.nvidia.com/rtx/dlss)</sup>

## References

1. [1.1. Introduction, CUDA Programming Guide, NVIDIA](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html)
2. [NVIDIA Launches the World's First Graphics Processing Unit: GeForce 256 (press release, August 31, 1999)](https://mmgik.org/images/almanach/agp/przypisy/NVIDIA%20LAUNCHES%20THE%20WORLDS%20FIRST%20GRAPHICS%20PROCESSING%20UNIT%20GEFORCE%20256.pdf)
3. [The Nvidia GeForce3 launched 25 years ago, Tom's Hardware](https://www.tomshardware.com/pc-components/gpus/the-geforce3-launched-25-years-ago-underappreciated-at-launch-its-impact-shaped-the-industry)
4. [CUDA Refresher: Getting Started with CUDA, NVIDIA Technical Blog](https://developer.nvidia.com/blog/cuda-refresher-getting-started-with-cuda/)
5. [1.2. Programming Model, CUDA Programming Guide, NVIDIA](https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/programming-model.html)
6. [GPU Performance Background User's Guide, NVIDIA Docs](https://docs.nvidia.com/deeplearning/performance/dl-performance-gpu-background/)
7. [Configuring UMA Frame Buffer Size on Desktop Systems with Integrated Graphics, AMD](https://www.amd.com/en/resources/support-articles/faqs/PA-280.html)
8. [Evolution of GPUs (GeForce 256, 23M transistors, 1999), NVIDIA presentation](https://download.nvidia.com/developer/presentations/2004/Perfect_Kitchen_Art/English_Evolution_of_GPUs.pdf)
9. [13 Years of Nvidia Graphics Cards, Tom's Hardware](https://www.tomshardware.com/picturestory/464-nvidia-graphics-cards.html)
10. [CUDA C Programming Guide 11.0 archive, NVIDIA](https://docs.nvidia.com/cuda/archive/11.0_GA/cuda-c-programming-guide/index.html)
11. [2.3. Writing SIMT Kernels, CUDA Programming Guide, NVIDIA](https://docs.nvidia.com/cuda/cuda-programming-guide/02-basics/writing-cuda-kernels.html)
12. [CUDA C++ Best Practices Guide, NVIDIA](https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html?highlight=local+memory)
13. [NVIDIA Ada GPU architecture whitepaper (Turing RTX, 2018)](https://images.nvidia.com/aem-dam/Solutions/geforce/ada/ada-lovelace-architecture/nvidia-ada-gpu-science.pdf)
14. [CUDA Programming Guide, NVIDIA](https://docs.nvidia.com/cuda/cuda-programming-guide/index.html)
15. [2.6. Unified and System Memory, CUDA Programming Guide, NVIDIA](https://docs.nvidia.com/cuda/cuda-programming-guide/02-basics/understanding-memory.html?highlight=CUDA)
16. [AMD CDNA Architecture, AMD](https://www.amd.com/en/technologies/cdna.html)
17. [AMD RDNA Architecture, AMD](https://www.amd.com/en/technologies/rdna.html?trk=article-ssr-frontend-pulse_little-text-block)
18. [Pipeline Stages (Direct3D 10), Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/direct3d10/d3d10-graphics-programming-guide-pipeline-stages)
19. [AMD Radeon VRAM, AMD](https://www.amd.com/en/products/graphics/gaming/vram.html)
20. [Frequently Asked Questions for Intel Graphics Memory on Windows 10, Intel](https://www.intel.com/content/www/us/en/support/articles/000020962/graphics.html)
21. [NVIDIA DLSS: Your Questions, Answered, NVIDIA](https://www.nvidia.com/en-us/geforce/news/nvidia-dlss-your-questions-answered/)
22. [NVIDIA DLSS, NVIDIA Developer](https://developer.nvidia.com/rtx/dlss)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Graphics & GPU hardware › Graphics hardware overview

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/graphics-processing-unit

English original: https://www.edgepedia.org/graphics-processing-unit
