Skip to content

Lower concrete BF16 GEMM to Grider ISA - #16

Merged
SaibaWaipu merged 4 commits into
mainfrom
codex/issue-9-gemm-lowering
Oct 30, 2026
Merged

SaibaWaipu merged 4 commits into
mainfrom
codex/issue-9-gemm-lowering

Conversation

@SaibaWaipu

Copy link
Copy Markdown
Member

Summary

Depends on #11 (FP32 BF16 MAC semantics). Adds a concrete 16x16 BF16 GEMM lowering using row/column lane masks, immediate loads, SIMD MACs, and final BF16 conversion. It includes a Python execution report (instruction count, cycle estimate, maximum error) and a utility to run the generated stream through the tile RTL testbench.

Scope

The current lowering embeds matrices in MOVI immediates because the ISA has no runtime global-memory load or program fetch. This is a complete fixed-input lowering path, not yet a reusable runtime GEMM kernel. Draft pending RTL/Python execution and reference-error comparison. No tests were run.

@SaibaWaipu SaibaWaipu changed the title [Draft] Lower concrete BF16 GEMM to Grider ISA Lower concrete BF16 GEMM to Grider ISA Oct 30, 2026
@SaibaWaipu
SaibaWaipu changed the base branch from codex/issue-8-bf16-f32-accumulator to main October 30, 2026 09:27
@SaibaWaipu
SaibaWaipu marked this pull request as ready for review October 30, 2026 09:27
@SaibaWaipu
SaibaWaipu merged commit b387172 into main Oct 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant