0Pricing
CUDA Academy · 课时

CPU 与 GPU:延迟与吞吐量

了解少量大型核心与数千个微型核心的区别

CPU 与 GPU:延迟与吞吐量 是 CoddyKit 上的免费 CUDA Academy 课时。 这是第 1 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 CUDA Academy 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 CUDA Academy 课程共包含 4 节课。

本课时的部分内容尚未翻译,以英文显示。

Two Very Different Chips

A CPU and a GPU both run code, but they are built for opposite goals. One races to finish a single task; the other floods a wall of work all at once. 🏎️

Latency: How Fast One Thing Finishes

Latency is the time it takes to complete one single task from start to end. When you want one answer right now, low latency is what you care about.

Throughput: How Much Finishes Per Second

Throughput is how many tasks you complete per second in total. You can have high throughput even if each single task is a bit slow.

The CPU Is a Latency Machine

A CPU has a few powerful cores with huge caches and clever tricks to rush one task to the finish line as fast as possible.

The GPU Is a Throughput Machine

A GPU trades single-task speed for sheer volume: thousands of small cores chew through enormous batches of work at the same time.

Few Big Cores vs Many Tiny Cores

Think of a CPU as a handful of strong workers and a GPU as an army of thousands of simple ones. Different shapes for different jobs.

The Highway Analogy

A sports car is low latency: one trip is quick. A bus is high throughput: each trip is slower, but it moves far more people per hour. 🚌

Why GPUs Spend Less on Control

CPUs spend transistors on caches and branch prediction. GPUs spend them on raw arithmetic units, so more of the chip is doing actual math.

Hiding Latency Instead of Avoiding It

A GPU does not make each task fast; it hides slow memory waits by instantly switching to other ready work. Idle time gets filled, not removed.

When the CPU Still Wins

For one quick decision, branchy logic, or a task that cannot split up, the low-latency CPU is still the right tool. Volume is not everything.

When the GPU Pulls Ahead

The moment you have the same operation to run over thousands of items, the GPU's massive parallelism turns a long job into a quick one.

Quick Check

Let us pin down the core tradeoff between these two chips.

Recap: Latency vs Throughput

CPUs use a few big cores for low latency; GPUs use thousands of tiny cores for high throughput. Pick the chip that matches the shape of your work. 👍

常见问题解答

「CPU 与 GPU:延迟与吞吐量」课时是免费的吗?

是的 — 「CPU 与 GPU:延迟与吞吐量」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 CUDA Academy 课程的其余内容,请升级到 CoddyKit PRO。 CUDA Academy 课程共包含 4 节课。

「CPU 与 GPU:延迟与吞吐量」这节课中我会学到什么?

了解少量大型核心与数千个微型核心的区别 你通过在浏览器中直接运行的动手代码来练习 CUDA Academy,全天候 AI 导师会在你学习这节课的过程中回答你的问题。

学习 CUDA Academy 需要有经验吗?

无需任何先前经验。CoddyKit 上的 CUDA Academy 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 1 节课,共 4 节。

「CPU 与 GPU:延迟与吞吐量」课时需要多长时间?

大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。

我能在这节 CUDA Academy 课中编写并运行代码吗?

能。每节 CUDA Academy 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。

此课程中的所有课时

  1. CPU 与 GPU:延迟与吞吐量
  2. SIMT:同一条指令,多个线程
  3. CUDA 到底是什么
  4. 适合 GPU 的问题
← 返回 CUDA Academy