Kernel-Trap-Cards / README.md
alphabell-research's picture
Publish Kernel Trap Cards (#1)
d3ce0b5
|
Raw History Blame Contribute Delete
1.48 kB
---
title: Kernel Trap Cards
emoji: 🧪
colorFrom: green
colorTo: blue
sdk: static
app_file: index.html
thumbnail: https://huggingface.co/spaces/alphabell/Kernel-Trap-Cards/resolve/main/thumbnail.png
license: mit
tags:
- code-evaluation
- gpu-kernels
- agents
- education
short_description: One green test can lie. Find five hidden correctness traps.
---
# Kernel Trap Cards
Five short puzzles about false confidence in generated code. Each card presents a candidate sketch that passes a fixed input. Choose a second test; the browser runs the candidate and a reference and shows their first different result. The examples cover tail masks, row strides, accumulator overflow, row coverage and aliasing. Share a card with its `?case=` URL.
These are original, simplified CPU sketches. They teach the input-regime problem examined in Dipankar Sarkar's [paper on LLM-generated GPU kernel correctness](https://arxiv.org/abs/2606.20128) and [public GPU-kernel corpus](https://huggingface.co/datasets/dipankarsarkar/gpuemu-corpus). The paper's empirical claims belong to its authors; this quiz does not rerun the GPU experiments.
The app is static and makes no model calls or runtime network requests. All candidate and reference computations run in the browser.
## Run locally
Serve this directory with any static HTTP server. For example, `python3 -m http.server 8000`, then open `http://localhost:8000/`. Run the puzzle-invariant check with `node tests/cases.mjs`.