0Pricing
Mojo Academy · Lesson

Threads, Blocks, and Grids

The GPU execution model.

The Smallest Worker

A GPU runs your kernel as many tiny workers. Each single worker is a thread, and it usually handles one piece of data.

Grouping Threads

Threads are organized into a block. Threads in the same block can cooperate and share fast on-chip memory.

All lessons in this course

  1. Why GPUs for AI Workloads
  2. Threads, Blocks, and Grids
  3. Writing a GPU Kernel Function
  4. Moving Data to and from Device
← Back to Mojo Academy