feat(EPv2): hybrid backend — HIP dispatch + FlyDSL combine - #563
Open
kawhil-amd wants to merge 3 commits into
Open
feat(EPv2): hybrid backend — HIP dispatch + FlyDSL combine#563kawhil-amd wants to merge 3 commits into
kawhil-amd wants to merge 3 commits into
Conversation
Split KernelSet's stages_in_kernel / self_resets_counters into per-leg flags (dispatch_resets_counters, combine_resets_counters, combine_stages_in_kernel) so the base class can drive each leg with the correct reset and staging semantics independently. Add hybrid_backend.py: EpDispatchCombineOpHybrid uses HIP/JIT EpDispatchPlan for the dispatch leg and FlyDSL make_combine for the gather-combine leg, sharing one SymmArena. Selectable via MORI_V2_KERNEL_BACKEND=hybrid or cfg.kernel_backend="hybrid". Tuning cross-picks dispatch geometry from hip_tuning_configs and combine geometry from tuning_configs, merged via merge_buckets (renamed from _merge for importability). Backend parity test now covers all three backends (flydsl, hip, hybrid). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The hybrid backend accepted fp4/fp8 combine configs silently (no gate in _unsupported). Add an explicit combine_dtype check matching the bf16/fp32 constraint. Also update the test comment from "2 backends" to "3 arenas". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
_arch/_is1250 were computed but never used: the HIP dispatch plan picks its portable-vs-TDM body at render time, and the gfx1250 combine fan buffer is irrelevant because hybrid combine is FlyDSL, not the TDM kernel. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
No description provided.