GPU Puzzles Blog Series - My Learning Experiences
Companion materials for Mojo GPU Puzzles (Puzzles 1-8)
I’ve been working through the official Mojo GPU Puzzles (https://puzzles.modular.com) on Apple Silicon M1 & M5 and I am documenting my solutions and learning process in a blog series. Hopefully they might be useful to others.
What’s covered:
- So far Puzzles 1-8: Thread basics through shared memory
- Both UnsafePointer and LayoutTensor approaches for applicable puzzles
- Solution code clearly marked
- Practical gotchas I encountered (missing barriers, bounds checks, etc.)
Links:
- Series introduction: GPU Threads Unraveled: A Hands-On Series Learning GPU Programming in Mojo
- Post #1 (Puzzles 1-2): GPU Threads Unraveled #1: First Threads – Launching into Mojo GPU Basics (Puzzles 1-2)
- Post #2 (Puzzles 3-8): GPU Threads Unraveled #2: Grids, Guards, and Shared Scratchpads (Puzzles 3-8)
- My fork with solutions: GitHub - Mjboothaus/mojo-gpu-puzzles: Learn GPU Programming in Mojo🔥 by Solving Puzzles
These are designed as a complement the excellent official tutorials. Comments/corrections welcome.