Show HN: PTX Puzzles – 12 real GPU sync bugs to fix, graded by a race detector
Category: devtools
Tags: gpu, cuda, concurrency, memory-model, education
Score: 7.3/10 (Innovation: 7, Technical: 8, Documentation: 8, Utility: 6)
PTX Puzzles is a collection of 12 CUDA kernel exercises that each contain a real-world GPU synchronization bug drawn from projects like CUTLASS, SuperLU_DIST, and LLM megakernels. A custom race detector (syncsan) grades fixes with adversarial executions, teaching the PTX memory model in a hands-on way. It's a rare educational tool that combines reproducible bug reproductions with automated correctness checking.
Target audience: CUDA developers, GPU performance engineers, and systems programmers learning the PTX memory model
Repository: https://github.com/ShreshthRajan/ptx-puzzles · Cuda · MIT
View on Hacker News