Skip to content

feat(compiler): add horizontal and vertical kernel fusion engine - #7

Merged
rahadbhuiya merged 1 commit into
Exploidus:mainfrom
rahadbhuiya:feat/kernel-fusion-engine
Nov 27, 2026
Merged

rahadbhuiya merged 1 commit into
Exploidus:mainfrom
rahadbhuiya:feat/kernel-fusion-engine

Conversation

@rahadbhuiya

Copy link
Copy Markdown
Member

Adds FusionEngine in tessera-ir to perform vertical epilogue fusion (TileMatMul + Elementwise activation) and horizontal batching of compatible parallel TileMatMul ops into TileOp::FusedHorizontal.

Wired FusionEngine::optimize into PtxGenerator::compile and JITCompiler::compile_and_assemble, with a batched %ctaid.z-indexed PTX emitter (emit_batched_tiled_gemm) so horizontally fused ops run in a single kernel launch.

Verified with unit tests in tessera-ir and a live RTX 3060 GPU test (fusion_gpu) running 3 fused ReLU GEMMs in one launch against CPU reference (max_diff < 1e-4).

Closes #3

@rahadbhuiya
rahadbhuiya force-pushed the feat/kernel-fusion-engine branch from 7e10aa7 to 5eabfdd Compare November 27, 2026 17:29
@rahadbhuiya
rahadbhuiya merged commit 4c7f9c7 into Exploidus:main Nov 27, 2026
2 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.

feat(compiler): Automatic horizontal and vertical kernel fusion engine

1 participant