Triton Sequential Stateful Blocks banner
anthony-maio anthony-maio

Triton Sequential Stateful Blocks

Development community

Description

--- name: triton-sequential-stateful-blocks description: Write Triton kernels with sequential stateful processing inside a single thread block, with mutable register state visible across iterations. --- # Sequential Stateful Processing in a Single Triton Block > **Targets:** Triton >= 2.1, SM70+/CDNA2+ ## Overview Some workloads require one thread block to process a sequence of items with mutable register state (e.g., LRU cache routing, sequential assignment). This pattern uses grid `(B,)` —

Installation

Installs to ~/.claude/skills/anthony-maio-triton-skills-triton-sequential-stateful-blocks/SKILL.md

Terminal
mkdir -p ~/.claude/skills/anthony-maio-triton-skills-triton-sequential-stateful-blocks && curl -fsSL https://raw.githubusercontent.com/anthony-maio/triton-skills/HEAD/skills/triton-sequential-stateful-blocks.md -o ~/.claude/skills/anthony-maio-triton-skills-triton-sequential-stateful-blocks/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository