Skip to content

Examples crate: kernels written against the API we want, compiling or not #18

Closed

Description

@feitreim

An examples/ crate holding real kernels — flash-attention forward, a GEMM, a
softmax, a layernorm — written the way we want them to read.

Aspirational examples are the point, not a compromise. Every issue in this
backlog is currently justified by "ThunderKittens has it." That is an argument
from authority, and it does not tell us what our API should look like or which
gaps actually hurt. An example that does not compile yet is a precise,
executable statement of the missing surface: the diff between it and the
library is the backlog, expressed in the only terms that matter — what a
kernel author has to write.

It also catches the failure mode where every primitive exists and composing
them is still miserable. Nothing else in the plan would surface that.

Layout

Its own crate with its own [workspace] stanza, like device-tests, so the
root cargo check never sees it and a non-compiling example cannot break the
library's build or CI.

Each example carries a header stating its status:

  • compiles — builds today under cargo oxide build --arch sm_100a
  • aspirational — names API that does not exist yet, with the issue numbers
    it is blocked on

Anything aspirational stays out of the default build target (a #[cfg] or a
commented module line) so that compiles examples stay honest and a reader
can tell the two apart without running anything.

First examples

Payoff

Each example promoted from aspirational to compiling is a real, legible
milestone, and the promotion is what proves an issue is actually finished —
as opposed to shipping a primitive nobody has tried to hold.

Activity

  1. added
    area:scaffolding
    on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:scaffolding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions