pisan-labs

GPU Parallel Puzzler — Data skill for Claude Code

Data community

Twelve CUDA-style kernel puzzles on a simulated GPU.

How to install GPU Parallel Puzzler

This entry records only its repository, not the path inside it, so there is no exact command to give. Open pisan-labs/gpu-parallel-puzzler and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What GPU Parallel Puzzler does

Twelve CUDA-style kernel puzzles on a simulated GPU. Write a kernel, pick the launch, and see warps, divergence, memory coalescing, bank conflicts, atomics and data races, graded against a par time. Built with Claude Code.

Alternatives in Data

  • Deepdive — Deepdive skill for Claude Code — 12-phase research pipeline: plan-review gate, parallel sub-agent search, clai 297 ★
  • Par Scrape — AI assisted web scraping and data extraction 218 ★
  • Kairos Dashboard — Launch the Kairos dashboard — the local web UI for monitoring what your CreatorOS agent is actually doing (act 212 ★

README

GPU Parallel Puzzler

Twelve parallel-programming puzzles on a simulated GPU. Students write small CUDA-style kernels, choose the launch (`kernel<<>>`), and see what the hardware would do with them: warps of 32 lanes, divergent branches, coalesced and uncoalesced memory, shared-memory bank conflicts, barriers, atomics and data races. Every run is graded for correctness and against a par time, with a CPU-vs-GPU estimate and plain-language hints.

Live: [gpu-parallel-puzzler.hintwise.org](https://gpu-parallel-puzzler.hintwise.org)

![Level 4 of GPU Parallel Puzzler: the divergent starter kernel earns one star with 128 divergent branches and 52% of lanes busy, then the 3-star solution runs at par with every lane busy and no divergence](demo.gif)

Built from idea 2026-06-23 n2 in [`pisanuw/daily-project-ideas`](https://github.com/pisanuw/daily-project-ideas). The idea's Claude hint system is replaced by a deterministic diagnosis that reads the simulator's counters and traces, and its Supabase dashboard by JSON exports that an instructor loads into a class table. WebGPU is not used: the GPU is simulated in TypeScript, so every browser gives the same numbers. Everything runs client-side.

![Level 4: a branch on i % 2 splits every warp; the diagnosis points to line 4](desktop.png)

The levels

# Level Concept The starter's problem
1 One thread per element threadIdx, blockIdx, grid only one block's worth of output
2 Off the end bounds checks crashes past the end of the array
3 Warp-sized blocks warps; block size blocks of 48 waste lanes and pay start-up costs
4 Branches that split a warp divergence if (i % 2 == 0) runs both paths in every warp
5 More elements than threads grid-stride loops 2,048 threads for 20,000 elements
6 Chunks or stripes coalescing CPU-style chunks: 8× the memory segments
7 Everyone writes one counter races and atomics out[0] += 1 loses