-
Notifications
You must be signed in to change notification settings - Fork 0
README: state the compiler direction; correct five stale claims #647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| target,family,compiled_route,status | ||
| nvidia_sm120,attention_backward_lse,—,gap | ||
| nvidia_sm120,attention_lse,—,gap | ||
| nvidia_sm120,attention_backward,scheduled_attention_backward.supports_scheduled_attention_backward,compiled | ||
| nvidia_sm120,paged_kv,—,gap | ||
| nvidia_sm120,attention,scheduled_attention.supports_scheduled_attention,compiled | ||
| nvidia_sm120,softmax,—,gap | ||
| nvidia_sm120,norm,—,gap | ||
| nvidia_sm120,reduction,—,gap | ||
| nvidia_sm120,nvfp4_matmul,—,gap | ||
| nvidia_sm120,int4_matmul,—,gap | ||
| nvidia_sm120,mx_matmul,—,gap | ||
| nvidia_sm120,matmul,scheduled_matmul.supports_scheduled_matmul,compiled | ||
| rocm_gfx1151,softmax,—,gap | ||
| rocm_gfx1151,reduction,—,gap | ||
| rocm_gfx1151,paged_kv,—,gap | ||
| rocm_gfx1151,attention,scheduled_attention.supports_scheduled_attention,compiled | ||
| rocm_gfx1151,moe_dispatch,—,gap | ||
| x86,softmax,—,gap | ||
| x86,reduction,—,gap | ||
| x86,matmul,scheduled_matmul.supports_scheduled_matmul,compiled | ||
| x86,attention,scheduled_attention.supports_scheduled_attention,compiled | ||
| x86,cohort2,—,gap | ||
| x86,breadth,—,gap | ||
| x86,elementwise,—,gap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # Bootstrap Prune — Mainline Coverage Gap | ||
|
|
||
| **Generated. Do not hand-edit.** Regenerate with | ||
| `python -m tessera.compiler.generated_docs --write`. | ||
|
|
||
| The Python per-backend `package_*` families are the **bootstrap | ||
| compiler**; the architecture is core MLIR/LLVM (Graph → Schedule → | ||
| Tile → Target via `tessera-opt`). This dashboard answers what must be | ||
| settled before any of it is deleted: **which families does the | ||
| mainline compiler already cover, and which would lose their only | ||
| lowering?** Decision #31's ordering caveat is the rule — a duplicate | ||
| authority is removed only after the survivor is proven to carry what | ||
| it carried. | ||
|
|
||
| A `gap` row is *not* a defect. It is scope: work the mainline | ||
| compiler must absorb, or a fast path that must be re-expressed | ||
| through a declared Target IR boundary (Decision #28 Tier 3) before | ||
| the bootstrap row can go. | ||
|
|
||
| ## Summary | ||
|
|
||
| | Metric | Count | | ||
| |---|---| | ||
| | Backends with a bootstrap module | 4 | | ||
| | `package_*` functions total | 49 | | ||
| | — **bootstrap** (re-enter Graph IR; prune target) | 34 | | ||
| | — compiled-route packagers (consume a lowered artifact) | 15 | | ||
| | Lines in those modules | 8738 | | ||
| | Classified families | 24 | | ||
| | — covered by a compiled route | 6 | | ||
| | — **gap (no compiled route)** | 18 | | ||
| | Packagers matching no family | 9 | | ||
|
|
||
| ## Per-backend bootstrap surface | ||
|
|
||
| | Target | Module | bootstrap | compiled-route | Families | Lines | | ||
| |---|---|---|---|---|---| | ||
| | `nvidia_sm120` | `nvidia_native.py` | 19 | 5 | 12 | 3783 | | ||
| | `rocm_gfx1151` | `rocm_native.py` | 7 | 5 | 5 | 2894 | | ||
| | `x86` | `x86_native.py` | 7 | 5 | 7 | 1846 | | ||
| | `apple_cpu` | `apple_cpu_native.py` | 1 | 0 | 0 | 215 | | ||
|
|
||
| ## Family coverage | ||
|
|
||
| `compiled` means a compiled-route admission predicate serves that | ||
| family. It does **not** assert the compiled route reaches parity on | ||
| every shape and dtype — that is per-family evidence the backend | ||
| queues own. | ||
|
|
||
| | Target | Family | Compiled route | Status | | ||
| |---|---|---|---| | ||
| | `nvidia_sm120` | `attention_backward_lse` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `attention_lse` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `attention_backward` | `scheduled_attention_backward.supports_scheduled_attention_backward` | ✅ compiled | | ||
| | `nvidia_sm120` | `paged_kv` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `attention` | `scheduled_attention.supports_scheduled_attention` | ✅ compiled | | ||
| | `nvidia_sm120` | `softmax` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `norm` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `reduction` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `nvfp4_matmul` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `int4_matmul` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `mx_matmul` | — | 🔴 **gap** | | ||
| | `nvidia_sm120` | `matmul` | `scheduled_matmul.supports_scheduled_matmul` | ✅ compiled | | ||
| | `rocm_gfx1151` | `softmax` | — | 🔴 **gap** | | ||
| | `rocm_gfx1151` | `reduction` | — | 🔴 **gap** | | ||
| | `rocm_gfx1151` | `paged_kv` | — | 🔴 **gap** | | ||
| | `rocm_gfx1151` | `attention` | `scheduled_attention.supports_scheduled_attention` | ✅ compiled | | ||
| | `rocm_gfx1151` | `moe_dispatch` | — | 🔴 **gap** | | ||
| | `x86` | `softmax` | — | 🔴 **gap** | | ||
| | `x86` | `reduction` | — | 🔴 **gap** | | ||
| | `x86` | `matmul` | `scheduled_matmul.supports_scheduled_matmul` | ✅ compiled | | ||
| | `x86` | `attention` | `scheduled_attention.supports_scheduled_attention` | ✅ compiled | | ||
| | `x86` | `cohort2` | — | 🔴 **gap** | | ||
| | `x86` | `breadth` | — | 🔴 **gap** | | ||
| | `x86` | `elementwise` | — | 🔴 **gap** | | ||
|
|
||
| ## Packagers matching no classified family | ||
|
|
||
| `package_<family>` is the convention, so these are reached by some | ||
| other entry point — a sibling call site, a dtype specialisation, or | ||
| dead code. Each needs its own disposition; none may be assumed | ||
| covered because a same-named family is compiled. | ||
|
|
||
| | Target | Packager | | ||
| |---|---| | ||
| | `nvidia_sm120` | `package_bf16_matmul` | | ||
| | `nvidia_sm120` | `package_bf16_softmax` | | ||
| | `nvidia_sm120` | `package_f16_matmul` | | ||
| | `nvidia_sm120` | `package_f16_softmax` | | ||
| | `nvidia_sm120` | `package_f32_softmax` | | ||
| | `nvidia_sm120` | `package_paged_kv_read` | | ||
| | `nvidia_sm120` | `package_scheduled_matmul` | | ||
| | `rocm_gfx1151` | `package_attention_backward` | | ||
| | `rocm_gfx1151` | `package_paged_kv_read` | | ||
|
|
||
| ## How to read a closing gap | ||
|
|
||
| A family leaves this table one of two ways, and only these two: | ||
|
|
||
| 1. **Absorbed** — the mainline compiler grows an admission predicate | ||
| and lowering for it, proven against the bootstrap row it replaces. | ||
| 2. **Re-expressed** — it stays hand-written or library-backed, but is | ||
| reached through a declared Target IR boundary | ||
| (`tessera_x86.abi_call` and its per-backend equivalents) so the | ||
| Decision #28 arbiter can score it. Chosen, never defaulted into. | ||
|
|
||
| Deleting a `gap` row without one of those is capability loss, which | ||
| is the failure mode Decision #31's ordering caveat exists to prevent. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.