What is a graphics processing unit kernel?

Definition

A graphics processing unit kernel describes a unit of parallel work executed across many hardware threads. AI kernels implement operations such as matrix multiplication, attention, normalization, sampling, and data movement.

Kernel quality often determines whether theoretical hardware performance becomes usable. Efficient implementations manage memory layout, synchronization, numerical precision, parallelism, and the architecture-specific instruction set.

ELI5

A graphics processing unit kernel is a small program designed to run the same kind of operation across many pieces of data in parallel. AI software uses kernels for heavy mathematical work and moving data efficiently.

For example, one kernel can multiply large blocks of numbers across thousands of hardware threads. A well-designed kernel keeps those threads busy and avoids wasting time moving data back and forth through slow memory.

Acronyms and aliases

accelerator kernel variantGPU kernel variant

Frequently asked questions

What does GPU kernel mean?

A GPU kernel is a parallel function launched across many graphics-processing threads to perform a defined computation on data.

Why are kernels important for AI inference?

Models repeatedly execute a small set of expensive operations, so optimized kernels strongly affect throughput, latency, power use, and memory demand.

Videos explaining graphics processing unit kernel

  1. Simran Arora beside the words LLMs Struggle With Multi-GPU Kernels
  2. Wes Roth beside the words OpenAI Breaks Nvidia's Moat