PTX Puzzles
github.com/shreshthrajan/ptx-puzzles- Category
- Education
- Rank
- No. 3314Tools index
- Type
- TOOL
- Date
About
PTX Puzzles is a set of twelve small CUDA kernels, each with a synchronization bug between thread blocks, drawn from projects such as LLM megakernels, CUTLASS and a CUDA sample. The learner fixes each kernel with as little synchronization as possible. A race detector called syncsan grades the fix, so a kernel that only happens to work on one GPU fails. This teaches the PTX memory model, where missing release and acquire pairs can give wrong results even when tests pass.
Why it made the leaderboard
Teaches PTX memory-model synchronization with real bugs from LLM megakernels and CUTLASS, and grades fixes with a race detector so kernels that merely work on one GPU do not pass.
Similar tools
vLLMgithub.comAn open-source LLM inference engine using PagedAttention and continuous batching to maximize GPU throughput.DeepGEMMgithub.comCUDA library of FP8 and FP4 tensor kernels for LLMs, with fused MoE, GEMMs, and runtime JIT compilation.ExLlamaV3github.comA quantization and inference library for running LLMs locally on consumer GPUs using the new EXL3 format.xcgithub.comSelf-hosting compiler that runs ordinary loops across CPU cores and GPUs through Metal, CUDA, Vulkan or WebGPU.
Browse all tools →Tags
cudagpuptxmemory-modelpuzzlesrace-detector
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.