#402 · Primary category: Education & Research
GPU-Puzzles
Solve puzzles. Learn CUDA.
Project last updated:09/01/24
GitHub Stars
12.4K
Forks
951
Contributors
4
License
MIT
Why we included this project
Most people who train models never write a line of GPU code, and this interactive notebook is one of the quickest ways to fix that: the puzzles get progressively harder, and you fill in the body of a CUDA kernel, starting with a simple vector map and working up to the shared-memory and reduction algorithms that power most of today's deep learning. Because the code runs through Numba, your Python-like functions get compiled into actual CUDA kernels, which keeps the entry barrier low without hiding what the hardware is doing. Each puzzle checks your kernel against a reference implementation, so you find out immediately whether your indexing is right. The best way to use it is as a hands-on tutorial: open it in Colab, turn on GPU mode, and work through the exercises instead of reading about them. It also makes a solid first exercise for anyone onboarding onto GPU work, and pairs naturally with Sasha Rush's companion Tensor Puzzles for the PyTorch side.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI