Skip to content

Shared vectors, and ops on shared tiles #13

Closed

Description

@feitreim

Shared vectors are absent entirely. ThunderKittens has sv as a first-class type with its own maps, reductions, conversions, and TMA paths (ops/group/memory/vec/, ops/group/shared/vec/).

We keep row statistics only in registers (RegVec). That works for a fused flash kernel where the statistic never leaves the warpgroup that computed it, but it blocks anything that needs to hand a vector between warps or across a work item: biases, running norm accumulators, per-row scales computed by a producer warp.

Related and equally absent: ops on shared tiles. ThunderKittens instantiates its full map and reduction surface for st as well as rt (ops/group/shared/tile/maps.cuh, reductions.cuh). For us shared memory is a movement target only — data has to come back to registers before anything can be done to it.

Shape

Sits below the register-side work because the ops mechanism has to exist first — done in the right order this is mostly new impls, not new mechanism.

Depends on #5, #6, #8, #9.

Activity

  1. added
    enhancement
    area:types
    area:compute
    on Jul 26, 2026
  2. feitreim commented on Jul 27, 2026

    @feitreim
    OwnerAuthor

    Acceptance: update examples/ as part of closing this.

    layernorm's gamma/beta: parameters shared by every row, wanted in shared memory with their own TMA path.

    The examples crate (#18) exists so that "done" is checkable in the terms a kernel author cares about, rather than as a claim about a primitive nobody has tried to hold. Concretely, on closing this:

    • Delete any workaround or GAP fence in examples/src/ that this issue removes the need for, and replace it with the real API.
    • If a kernel becomes fully unblocked, move it from aspirational to compiles: flip its header, take it out of its feature gate, and confirm modal run modal_app.py::build builds it for sm_100a.
    • Update the status table and the blocked-on lists in examples/README.md.

    If the example still does not compile afterwards, that is a finding worth writing down — say what is still missing rather than leaving the README stale.

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:computearea:typesenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions