0Pricing
CUDA Academy · Lesson

What Occupancy Really Means

Active warps versus the SM maximum.

What Occupancy Really Means is a free CUDA Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the CUDA Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Meet Occupancy

Each GPU core, called an SM, can keep many warps resident at once. Occupancy measures how full that capacity really is. 🎯

A Simple Ratio

Occupancy is the ratio of active warps on an SM to the maximum warps that SM can hold. More resident warps means a fuller machine.

Why Resident Warps Matter

When one warp stalls on a slow memory read, the SM instantly runs another ready warp. That swap is how the GPU hides latency.

The SM Maximum

Every architecture sets a ceiling, often 64 warps per SM. Occupancy compares your kernel against that hardware limit.

Theoretical vs Achieved

Theoretical occupancy is what your launch config allows on paper. Achieved occupancy is what actually ran, measured by a profiler.

A Quick Example

If an SM holds 64 warps but your kernel keeps only 32 resident, your occupancy is 50%. Half the latency-hiding power sits idle.

Counting in Warps

Occupancy is always counted in warps, never single threads. A warp is 32 threads, so a 256-thread block is exactly 8 warps.

Blocks Become Warps

The scheduler splits each resident block into warps. So blocks per SM times warps per block gives the active warp count.

What Caps It

Three resources cap occupancy: registers per thread, shared memory per block, and the SM warp limit. The tightest one wins.

Higher Is Not Always Better

More occupancy usually hides latency better, but past a point it brings no extra gain. It is a tool, not the final goal.

Where You See It

Profilers like Nsight Compute report achieved occupancy right next to your kernel. That number is your tuning starting point.

Quick Check

Think about what occupancy actually measures.

Recap

You learned that occupancy is active warps over the SM maximum, counted in warps, and it powers latency hiding. 🚀

Frequently asked questions

Is the “What Occupancy Really Means” lesson free?

Yes — the full text of “What Occupancy Really Means” is free to read here on the web, and the CUDA Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the CUDA Academy course, upgrade to CoddyKit PRO.

What will I learn in “What Occupancy Really Means”?

Active warps versus the SM maximum. You practise CUDA Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start CUDA Academy?

No prior experience is required. CUDA Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “What Occupancy Really Means” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this CUDA Academy lesson?

Yes. Every CUDA Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What Occupancy Really Means
  2. Registers and Shared Memory Limits
  3. The Occupancy Calculator API
  4. Occupancy Is Not the Whole Story
← Back to CUDA Academy