Artificial Intelligence · 2.75 hrs
GPU Programming with CUDA
You can write and launch kernels across grids of blocks and threads, computing each thread's global index.
Last updated
Graphics Processing Units (GPUs) power modern artificial intelligence, graphics and science. Learn their programming model in a teaching subset of CUDA-C, by writing kernels and running them in a bounded interpreter in your browser. From your first thread to a shared-memory reduction and atomics, every lab runs your code and checks the result.
Sign in for at least the first three chapters free, through the opening practical exercise, with no card required. Each chapter is a short briefing, a knowledge check and a practical exercise.
Who it is for
You can read basic C-family code and want to program the graphics processing unit (GPU) with Compute Unified Device Architecture (CUDA). You need no GPU hardware or parallel-programming experience.
What you will be able to do
- You can write and launch kernels across grids of blocks and threads, computing each thread's global index.
- You can move data between host and device memory (allocate, copy, launch, copy back, free) with bounds guards and grid-stride loops.
- You can coordinate threads with shared memory, __syncthreads and atomics to build a parallel reduction and a dot product.
Before you start
Ability to read basic C. Kernels run in a bounded CUDA-C simulation, so arbitrary C++ and physical GPU behaviour need verifying on native hardware.
How the course works
- Read: Short briefing cards, one idea per screen. Each chapter opens with the concepts its lab practises.
- Check: Quick checks sit inside the reading. Answering one unlocks the next card.
- Do: Build locally checked artifacts, code or simulated state. Some guided prompt practice calls managed Claude, so you don’t need a personal API key.
Curriculum: 20 chapters
- What CUDA is
Explain what a Graphics Processing Unit (GPU) is for, and what CUDA lets you do with it. - Threads, blocks & grids
Diagram how CUDA organises parallel work into threads, blocks and a grid, and write a kernel launch. - Lab: your first kernel
Write and launch a kernel where each thread writes its own index. - The global index
Apply the formula that gives each thread a unique index across the whole grid, and size the grid correctly. - Lab: index across blocks
Compute the global index across many blocks and choose a launch configuration that covers the data. - Host & device memory
Explain why GPU memory is separate and write the allocate–copy–launch–copy–free cycle. - Lab: vector add & the bounds guard
Write element-wise vector addition, the usual first CUDA program, with a bounds check. - Lab: manage device memory
Write the host-side memory dance yourself: allocate, copy in, launch, copy out, free. - Warps & divergence
Explain how threads execute in warps of 32, and predict when branches cost performance. - Lab: SAXPY & the grid-stride loop
Combine a scalar and two vectors, and write a grid-stride loop so any grid size covers any data size. - Shared memory & __syncthreads
Use the fast on-chip memory threads in a block share, and place the barrier that keeps them in step. - Lab: parallel reduction
Sum an array in parallel using shared memory and a tree reduction with __syncthreads. - Races & atomics
Explain why concurrent updates to one location corrupt data, and fix the corruption with atomic operations. - Lab: histogram with atomics
Build a histogram where many threads update shared bins safely with atomicAdd. - Occupancy & performance
Explain what keeps a GPU busy: occupancy, the resources that limit it, and coalesced memory access. - Lab: parallel maximum
Reduce an array to its maximum with a shared-memory tree reduction using max, then combine blocks with atomicMax. - Lab: capstone dot product
Combine everything: per-thread products, a shared-memory reduction per block, and one atomicAdd per block into a global result. - What you did & where next
Recap the CUDA programming model you now know and where to take it on real hardware. - Course knowledge exam
- Practical exam: threshold histogram
Combine guards, classification and atomic aggregation across partial blocks.
Questions
How long does the GPU Programming with CUDA course take?
About 2.75 hours of focused work across 20 chapters. Progress is saved, so you can do it in one sitting or spread it over a week.
Can I try it before paying?
Yes. Sign in for at least the first three chapters free, through the opening practical exercise, with no card required.
What does it cost?
A$29 (US$19, €17 or £15) once for 12 months of access that does not renew. It is also included in its family plan and All-Access. Your country sets the currency you are charged in. Australian dollar prices include GST.
Do I get a certificate?
Yes. Completing the required chapters and assessments earns a certificate of completion with a public ID anyone can check at breakfixlabs.com/verify. It records course completion and is not a vendor certification.
See pricing · Try the free HSM demo
Independent training material · © BreakFix Labs · not affiliated with any vendor or certifying body it teaches · breakfixlabs.com
NVIDIA and CUDA are trademarks of NVIDIA Corporation. All marks are the property of their respective owners. BreakFix Labs is independent and is not affiliated with, endorsed by, or sponsored by Thales, Entrust, HashiCorp, Flipper Devices, Palo Alto Networks, Amazon Web Services, Microsoft, Google, ISC2, ISACA or any vendor or certifying body it teaches.