Mojo GPU Puzzles Edition 1
Mojo GPU Puzzles Edition 1 is out. It’s a set of 34 puzzles that teach GPU programming, and the whole premise is that you write code from puzzle one instead of reading theory for three chapters first.
Why Mojo?
A few reasons. The syntax is close to Python but the performance is closer to C, and the type system catches a lot of the mistakes you’d normally only find at runtime. The bigger draw for me is portability: the same Mojo code runs on NVIDIA, AMD, and Apple GPUs (Apple support is still partial), so you’re not rewriting kernels for every vendor. You also get direct access to GPU intrinsics when you need them, without dropping all the way down to CUDA.
What you’ll learn
The puzzles go in order. You start with thread indexing and work up to tensor cores, and along the way you end up understanding both why GPU code is shaped the way it is and how to write it. All 34 are live now.
Start with puzzle 1: puzzles.modular.com.