Repository navigation
t27c PTX backend: ternary x int8 GEMM kernel emitted by a .t27 spec (int8 mma.sync), ptx-run glue - #10425
Merged
Conversation
…M kernel, with its host reference (Refs #10404) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…0404) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t27 emitter; delete orphan math_pslq.rs to pay the budget (Refs #10404) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ut once; driver: split the truncate borrow (Refs #10404) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 18, 2026
…split, 21/21 (Refs #10404) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 18, 2026
Owner
Author
RTX 4090 run: the t27-emitted PTX is bit-exact; its speed matches bf16 and is about 2.7x below CUTLASS s8Head What ran
Bit-exact
Throughput, same pod, ms per callThe torch columns are filled by CUTLASS 3.5.1
How each column was measured, so the two are not mistaken for one method:
What this says
Raw outputs are in the session notes ( |
gHashTag
marked this pull request as ready for review
October 18, 2026 11:53
Contributor
This was referenced Oct 18, 2026
Closed
This was referenced Oct 18, 2026
This was referenced Oct 19, 2026
Merged
… CI measured (Refs #10404) specs/fpga/analog_cell_ax7203.t27 and trios-igla-race bin/debug_queue.t27, bin/smoke_agent.t27. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
PR DashboardGenerated at: 2026-10-19 02:41:01 UTC
Summary
Seal Status
|
This was referenced Oct 19, 2026
Merged
scripts/tri: give the t27t arm its own line, so the docs check finds tri t27t (Closes #10807)
#10809
Merged
This was referenced Oct 19, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #10404. Plan: #10360 (owner override 2026-10-18: build the backend, and build it in t27).
What this adds
specs/igla/coder/ternary_gemm_ptx.t27writes the PTX of one kernel,ternary_gemm_s8: the GPU lowering ofspecs/igla/coder/ternary_gemm_gpu.t27on int8 tensor cores.mma.sync.aligned.m16n8k32.row.col.s32.s8.s8.s32(sm_80+, the RTX 4090 is sm_89). It does not use dp4a.(c & 1) - ((c >> 1) & 1), and stored transposed as s8 in shared memory.gen_aandgen_wp, the data;ref_row, the CPU reference;mismatches, the count;shape_okandgrid_dim.t27c compile specs/igla/coder/ternary_gemm_gpu.t27 --backend ptxwrites the emitter's bytes toternary_gemm_gpu.ptx. Every other spec is refused: this lowers one kernel and is not a general t27 -> PTX lowering.t27c ptx-runexists only behind the new cargo featurecuda. It loads the PTX with the CUDA driver API, runs it, copies C back, and calls the spec'smismatches. The default build does not link libcuda.bootstrap/src/math_pslq.rs(589 lines, never compiled;docs/reports/orphan_modules.jsonceiling 6 -> 5) pays for them.Verification
t27c test-reportgives 21/21 pass, 0 vacuous, 5 invariants proved. The seal is saved (gen_hash_rustequals the committedbootstrap/gen/rust/igla/coder/ternary_gemm_ptx.rs).c9a20a08c), results comment:9fd1ccbc...e96c.ptxas -arch=sm_89: 105 registers, 0 spills.t27b-native-linuxandt27b-native-macosfail on a master@remtest incli/t27b/tests/tail.rs, which this PR does not touch.claw-sariffails because the App token permissions are not granted.🤖 Generated with Claude Code