Hands-on tutorials for GPU programming in Mojo 🔥 | Learn kernels, threads, blocks, memory layouts, and LayoutTensor with practical examples | Write once, run on NVIDIA, AMD, or Apple Silicon
Before you begin, make sure you have:
- 🖥️ VS Code installed (Download here)
- 🐧 Linux or macOS (Windows users: use WSL2)
- 🎮 NVIDIA/AMD GPU (optional, but recommended for GPU tutorials)
git clone https://github.com/abhisheksreesaila/mojo-gpu-tutorials.git
cd mojo-gpu-tutorialsIf you don't have pixi installed:
curl -fsSL https://pixi.sh/install.sh | sh💡 Pixi manages all dependencies automatically - no manual setup needed!
pixi add mojoChoose your version:
- 🌙 Nightly - Latest features (for adventurers)
- ✅ Stable - Recommended for learning
pixi shellYou should see (mojo_monday) in your terminal prompt 🎉
code .In VS Code:
- Open Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "Markdown Lab"
- Click Install
- Open any
.mdxfile in thenotebooks/folder - Click the
▶️ Run button in any code cell - Watch Mojo magic happen! 🔥
Happy GPU Programming! 🔥🚀