Skip to content

feat(ep/intranode): bring MoE dispatch/combine up on gfx1250 (MI450) - #532

Merged
zhangfei829 merged 34 commits into
mainfrom
epv2-final
Aug 8, 2026
Merged

zhangfei829 merged 34 commits into
mainfrom
epv2-final

Conversation

@zhangfei829

Copy link
Copy Markdown
Collaborator

What this adds

An intra-node EP dispatch/combine path for gfx1250 (MI450/MI455), plus the backend
work it needs to run on an arch that has no mori-shmem.

  • New gfx1250 kernel bodies in src/ops/dispatch_combine/intranode_1250x.hpp:
    TDM dispatch, and combine over two transports -- PUSH (caller-owned input buffer)
    and PULL/QUAD (zero copy). Which body runs is decided in intranode_entry.hpp by
    the __gfx1250__ / __gfx1251__ macros the device compiler already defines, so the
    host cannot disagree with the device about it. Every other arch keeps the portable
    body in intranode.hpp unchanged.
  • CCO VMM-arena backend for the EP handle's symmetric buffers. gfx1250 has no
    shmem support; cco routes those buffers through an LSA window instead, which is
    what makes intra-node EP work there at all. Adds ccoGetPeerPtr so the host can
    pre-fill the peer-pointer table a kernel later dereferences.
  • Runtime wavefront size detection instead of a hard-coded 64. gfx1250 is wave32
    and every launch-geometry and LDS computation depends on getting this right.

Performance

EP4, bf16, hidden 7168, 64 experts/rank, top-8, correctness check armed, rc=0 on
every reading. Measured with tools/ep_test.sh, which is included here.

tokens/rank dispatch combine PUSH combine PULL
4096 1231.2 GB/s (172.4us) 1111.0 GB/s (191.1us) 1264.8 GB/s (167.9us)
16384 1227.9 GB/s (691.5us)

The 16384 PUSH figure is the one to look at: it was 847.3 GB/s (1002.4us) before
perf(ep/intranode): make every combine push tile span the whole recv space, a 1.45x
gain. The push tile loop used to cut a contiguous run out of each block's share, and
once that share exceeded the 512-entry tile a single tile could cover a stretch of the
receive space holding no token at all for some peer -- that link idled for the whole
drain. Striding the tile so it always spans the full receive space keeps every peer
present in every tile. The decisive evidence was that MORI_COMB_NOROUTE, which
changes only the destination and leaves bytes, ops, slot layout and warp count alone,
read 515.3us against 822.0us unmodified: the missing resource was concurrent links,
not link bandwidth.

Correctness fix included

fix(profiler): drop traces from over-capacity warps to avoid OOB write is independent
of the rest. TraceProfiler::log_with_time indexed a per-warp slot without checking it
against PROFILER_WARPS_PER_RANK; a 4K-token dispatch launches 6144 warps against 4096
slots and the excess wrote out of bounds.

Cleanup

Roughly half the commits remove things rather than add them: environment gates that no
longer reached the compiler, a scale-store selector whose only non-default mode produced
wrong results, disabled instrumentation, a staging route reachable only through a flag
that was always off, and a combine quantization path the gfx1250 body could never select.
Each removal is its own commit with the evidence for why the deleted branch was
unreachable or unused.

Reproducing

tools/ep_test.sh runs a 64..16384 token sweep and prints dispatch, combine PUSH and
combine PULL side by side. Correctness checking is on by default; a row is only valid at
rc=0. It passes launch geometry as an explicit 0, which is how a caller tells the
library it has no opinion and gets the shipping per-body defaults.

zhangfei829 and others added 30 commits August 7, 2026 16:08
Reproduces on ONE GPU (with an in-binary watchdog + external timeout, so it
can never wedge the node) the host/device warp-count mismatch that hangs the
v1 C++ IntraNode EP4 test on gfx1250 (MI450/MI455): the Python launch layer
hard-codes WARP_SIZE=64 and sizes combine's dynamic LDS for warp_num_per_block
warps, but the device recomputes warpNum = blockDim.x / warpSize (=32 on
gfx1250), doubling the warp count and overflowing the combine shared-mem
pointer arrays -> garbage src pointers -> the cross-device spin barrier never
completes -> EP4 hangs. Use this to gate the real test.

Co-authored-by: Cursor <[email protected]>
Brings the intra-node op up on CCO instead of SHMEM: the arena allocation path in
cco_init, the symmetric-pointer plumbing through dispatch_combine.cpp, and the
host/python wiring for it.

Carried a temporary MORI_BW_DUMMY_ATOMICS=N probe that injected N extra remote
atomicAdds per sent token, to test whether per-token remote atomics explained the
CCO-versus-SHMEM bandwidth gap. They did not, and the probe is removed later in
this series.

Co-authored-by: Cursor <[email protected]>
The v1 C++ IntraNode launch layer hard-coded WARP_SIZE=64, so on gfx1250
(MI450/MI455, wave32) the host launched block = 64*wpb threads while the device
recomputed warpNum = blockDim.x/warpSize = 2*wpb, doubling the warp count and
overflowing combine's dynamic-LDS pointer arrays -> garbage src pointers -> the
cross-device spin barrier never completes -> EP4 hangs.

Detect the wavefront size per device (32 on gfx12xx, 64 on gfx9xx) and use it
for every kernel-launch block dim. Detection order mirrors the FlyDSL v2 path
(MORI_WAVE_SIZE override -> arch string): we do NOT trust the runtime device
property first because get_warp_size/warp_size wrongly reports 64 on gfx1250.

MI300 (gfx942) and MI355 (gfx950) keep warpSize=64 -> no behavior change; only
gfx1250 now launches with the correct 32-lane blocks. No C++/JIT change needed
(kernels already derive warpNum from the runtime warpSize).
Temporary profiling scaffolding: dispatch_send_tokens becomes DispSlotAssign
(remote slot atomic plus metadata writes), DispWriteMeta (weights and indices)
and DispTokenCopy (hidden-dim WarpCopy), so a trace shows which statement
dominates the CCO slowdown.

The slots answer that one question and are removed later in this series, so this
commit leaves nothing in the final tree.

Co-authored-by: Cursor <[email protected]>
…peer latency

The dispatch hidden-dim copy used WarpCopy with Unroll=1 (one 16B load+store in
flight per lane). On the CCO peer path this is latency-bound. Bump to Unroll=8
(8 in-flight loads before stores), mirroring the v2/FlyDSL multi-stream copy, to
test recovering CCO dispatch bandwidth without changing the memory allocation.

Co-authored-by: Cursor <[email protected]>
…) for gfx1250

Combine gather was WarpAccum 4B (one vec-chunk in flight per expert), which
under-fills the CCO/xGMI peer-read pipe on wave32. WarpAccumLF keeps
AccumNum*Unroll remote reads in flight (16B vec, load-first over the Unroll
dimension), mirroring the v2/FlyDSL gather schedule. Lifts gfx1250 EP4 4K
combine from ~18 GB/s (default geom) toward the v2 tuned ~180 GB/s peak.

Co-authored-by: Cursor <[email protected]>
Grids larger than PROFILER_WARPS_PER_RANK (e.g. 4K-token dispatch = 6144
warps > 4096) wrote past the per-warp trace buffer, corrupting memory and
wedging the GPU. Guard log_with_time on warp_id < PROFILER_WARPS_PER_RANK.

Co-authored-by: Cursor <[email protected]>
Intra-node cco kernels use cco LSA peer pointers + pointer-based device
waits, not the mori-shmem heap. Loading kernels with shmem_module_init
(init_shmem=True) asserts when mori-shmem is uninitialized, and on
gfx1250 shmem init itself can hang. Pass init_shmem=(cco_comm is None)
so the op skips shmem_module_init in cco mode, and skip
shmem_torch_process_group_init in the benchmark when MORI_EP_COMM=cco.

Verified pure-cco V1 EP4 4K bf16 hidden=7168 on gfx1250 (MI450):
dispatch ~268 GB/s, combine ~274 GB/s, correctness pass, no shmem init.
… / 128x16)

The tuned merge dropped the gfx1250 wave32 launch-config special case, so
gfx1250 EP4 4K fell back to the generic gfx942 geometry (combine 72x4),
which is badly under-configured there. Restore a wave32 branch that uses
the same CU geometry as the FlyDSL v2 op: 192x32 dispatch, 128x16 combine.

Verified pure-cco V1 EP4 4K bf16 hidden=7168 on gfx1250 (MI450) with the
default config: dispatch ~262 GB/s, combine ~211 GB/s, correctness pass.
Brings the measured gfx1250 intra-node EP transport onto epv2 as the one
configuration it ships with, rather than as a set of environment gates.

Dispatch takes a block-local exact count, reserves its destination slots in one
batched remote atomic per (block, peer) instead of one per token, and moves the
payload with a 1D TDM descriptor. Combine's PULL gather is decomposed by SOURCE
rather than by hidden-dim chunk: one warp owns one peer's whole token, a group of
worldSize warps folds the tile out of LDS, and the TDM engine stores the result.

The transport is selected by the arch macros the device compiler already defines
(MORI_TDM_OK, i.e. __gfx1250__ / __gfx1251__), so a build carries its own
configuration and cannot disagree with the host. Every other arch keeps the
WarpCopy dispatch and the chunked gather unchanged.

What the host still decides, and must agree with the device on to the byte:
  - combine's dynamic LDS reservation, which sizes the QUAD tiles and the count
    ring the kernel indexes (_combine_shared_mem <-> _qLdsNeed in intranode.hpp);
  - PUSH vs PULL, and whether the blockwise quantise pass runs as its own kernel.
_is_gfx125x() is the single host-side source for the arch test that all of these
read, so they cannot drift from each other or from the compiled kernel.

jit/core.py no longer emits any MORI_COMB_* / MORI_DISP_* flag and
_tunable_defines() is empty; cache.get_cache_dir keys on the arch plus a hash of
that list, which is what keeps a future value-carrying -D from reaching the
compiler without also reaching the cache key.

Also drops the MORI_BW_DUMMY_ATOMICS field: it injected dummy remote atomics to
test whether the per-token remote atomic dominated dispatch, and the batched
reservation above removes that atomic outright, so the knob would now read an env
var and do nothing -- which is worse than either answer.

Equivalence of the folded kernel is established at the machine-code level: the
shipping configuration compiles to the same instruction multiset for every
combine instantiation. bf16 and fp8 -- the measured types -- differ only in
scalar padding and one address factorisation, with no memory operation, fold
arithmetic or TDM descriptor changed.

Co-authored-by: Cursor <[email protected]>
…p scaffolding

Three no-op cleanups left over from the gate removal, proven equivalent by
per-symbol disassembly against the previous commit.

_BPTS expanded to do {} while (0) with no alternative definition once the
profiling branch went away, so both dispatch bodies carried 16 call sites, two
macro definitions and two #undefs that generated nothing. Every call site sat
immediately above the // ---- Phase N ----' header that already names the
boundary it marked, so nothing documented is lost with it.

defined(MORI_COMB_TDM) && defined(MORI_TDM_OK)' was a tautology in all eight
places: MORI_COMB_TDM is defined at the top of this header inside the
MORI_TDM_OK block and, unlike QUAD/QSPLIT/QTST/BARSLEEP/BARSPREAD, has no
non-TDM default, so defined() on it IS the arch test. The conjunction was
meaningful only while the chunk count arrived as a -D from jit/core.py
independently of the arch check.

The dispatch body meanwhile spelled that same test as the raw target macros.
Three spellings of one condition is how the transport and the values it is
compiled with drift apart, so MORI_TDM_OK is now the only one, defined once
from __gfx1250__/__gfx1251__ at the top.

_cPullChunks loses a ternary against a value that can no longer be zero.

Co-authored-by: Cursor <[email protected]>
…on hooks

Siblings of the _BPTS scaffolding removed in the previous commit, found by
searching for macros whose body is empty rather than by name.

_MHTS (4 sites) and _CSTAMP (5 sites) were per-phase timestamp hooks left
expanding to \do {} while (0)'. _CSTAMP is the worse of the two: its arguments
_cSetup / _cIssue / _cWait / _cRed are not declared anywhere, so those five
lines only compile because the macro discards what it is handed. Restoring the
hook would not have built.

_MORI_COMB_LB_ATTR was an empty launch-bounds attribute on the combine entry
point. An empty attribute slot on a __global__ reads as if launch bounds were
being set and none were.

MORI_COMB_PUSH_TARGET_DECL declared _pushPe/_pushRow so a gate could redirect
where a pushed token lands. With the gate gone it always yielded
(destPe, myPe), so the three call sites now name the peer and the row directly:
write into destPe's staging buffer, in my own row.

Co-authored-by: Cursor <[email protected]>
…x.hpp

First step of separating the two architectures' implementations. The TDM
descriptor helpers, the CUSPLIT metadata staging pool and the batched dispatch
body move verbatim into a new header that is included only from inside
intranode.hpp's \#if defined(MORI_TDM_OK)'.

Because the file as a whole is now known to be compiling for a card with the
TDM engine, the four arch #if/#endif pairs that used to wrap the body's count,
FINALIZE, meta-send and payload phases are gone: they existed only to make the
body's text disappear on other targets, which including the file conditionally
does instead. The body is renamed EpDispatchIntraNodeKernel_1250x_body so the
selector reads as the arch choice it is.

The header is not standalone and says so: it is written against
MAX_GPUS_PER_NODE, which is why intranode.hpp includes it below that #define
rather than at the top.

Proven no-op: per-symbol instruction counts over the whole ep_intranode
disassembly are unchanged from the previous commit.

Co-authored-by: Cursor <[email protected]>
….hpp

Second and last step of separating the two architectures' implementations, the
same move the previous commit made for dispatch. The PULL/QUAD gather, the PUSH
send and its fold, the TDM tile budget arithmetic and the cross-device barrier
variant move verbatim into intranode_1250x.hpp, which is still reached only from
inside intranode.hpp's arch #if.

The arch #if/#endif pairs that used to wrap those phases inside the shared body
are gone for the same reason as last time: they existed to make the text
disappear on other targets, which including the file conditionally already does.
The body is renamed EpCombineIntraNodeKernel_1250x_body.

What stays in intranode.hpp is what every target needs: the cross-device
barrier, EpCombineQuantizeInputKernel_body, and the portable WarpCopy dispatch
and WarpAccumLF combine bodies. intranode.hpp goes from 2373 lines to 717 and no
longer mentions TDM.

Co-authored-by: Cursor <[email protected]>
…ide a body

The shipped combine symbol on gfx1250 was running the portable gather, not the
TDM one, and had been for as long as the arch choice lived where it did.

The `#if` that picks the implementation sat inside `__global__ void
EpCombineIntraNodeKernel` -- and nobody instantiates that template. What ships
is the extern-C symbol the WRAP macros generate in ep_intranode.hip, and those
call `kernel##_body` directly, straight past the `__global__`. Not one
instruction was ever emitted from that test, and no compiler diagnoses it.

So the choice moves out of both implementations into a file whose only job is
to make it. intranode.hpp holds the portable bodies and now contains no arch
test, no `1250`, no `TDM` and no `__global__`; intranode_1250x.hpp holds the TDM
bodies and tests nothing, since it is only reachable from inside the `#if`.
intranode_entry.hpp is the one file that knows there are two.

The hook the WRAP macros use has to change with it: `_body` is the name the
portable implementation keeps (so intranode.hpp stays close to main), the
symbol name is fixed by the host looking it up as a string, and `__gfx1250__`
only exists in the device compilation pass -- three constraints that leave one
shape. WRAP_*_ENTRY forwards to `kernel##_entry` instead, and the 17
dispatch/combine registrations use it. LL, the quantise pre-pass and Convert
keep calling `_body`, having only one body each.

Also drops `Batch` from the dispatch symbol. It came from e689644, when there
were two dispatch kernels to tell apart; 6a4d747 deleted the other one and the
word has distinguished nothing since. `EpDispatchIntraNodeBatchKernel_<dtype>`
becomes `EpDispatchIntraNodeKernel_<dtype>`, with launch.cpp, the Python kernel
name and the JIT architecture doc following. This is a symbol rename: a stale
wheel on the far side fails at lookup, not at run time.

The two unused `__global__` wrappers go with it, along with the comments across
the Python launch path that pointed at intranode.hpp for values that now live
in intranode_1250x.hpp -- the mismatched-comment failure this whole split is
meant to stop.

Co-authored-by: Cursor <[email protected]>
MoriFmaMixBf16, TdmShapeMeta and TdmMetaTileOk have no call site anywhere in the tree. The first
was superseded by MoriFmaMixBf16M, which takes the multiplier in src1 instead of the inline 1.0 and
is what the bf16 fold uses. The other two were the search-based meta tile geometry, replaced by
TdmCheapDim1's closed form; TdmMetaTileOk survived only as a name inside a comment in TdmShapeMeta,
which is to say inside the other dead function.

The measured justification for the >= 128B TDM row, which lived on TdmShapeMeta, moves to
TdmCheapDim1, where the 32-element floor is now enforced.

Co-authored-by: Cursor <[email protected]>
…e one value

MORI_COMB_QSPLIT and MORI_COMB_QTST were tile-layout variants that were measured and lost, and both
have been pinned to a single value since. Everything downstream was still written over their whole
range, so the QUAD path carried a QTST=3 whole-block store, a !_qTG per-warp store, a global-memory
_qStore, and a _u % _qSplit part index that is always 0 -- none of which the shipping build
generates a single instruction for.

Gone with them: _cCombTdmBuilt, a constexpr true left over from when the TDM tile path could be
compiled out, and _qStNow, assigned and never read.

MORI_COMB_QUAD stays. It is the tile ring depth, the code is written over any depth on purpose, and
_qBufs >= 4 is what currently keeps blockwise out of QUAD (HANDOFF §19: depth 2 computes wrong
results there, cause not found). Collapsing it would delete that gate and QUAD's scale plumbing
with it.

The host mirror in _combine_shared_mem() follows: _QUAD_SPLIT is gone and the QUAD tile is a whole
token. The two sizings are one layout and may only move together.

Co-authored-by: Cursor <[email protected]>
…250 body

Quantized combine is not a transport gfx125x wants: at its best tuning blockwise is 367.6us
against 169.2us for bf16 moving twice the bytes. Carrying it through the TDM body cost a scale
pointer array, a register scale-row prefetch, a scalar dequant chain and a block-index computation
inside every fold loop -- 319 lines of a file whose reason to exist is the TDM code.

intranode_entry.hpp now sends every quantizing instantiation to the portable body on gfx125x, so
the TDM body takes four template parameters instead of nine and its token type is just T. No launch
symbol changes name, so the C++ path still resolves _nop2p_fp8_blockwise*.

Two-tree ISA diff, same container and compiler:
  gfx942  640244 disassembly lines both sides, every symbol and every mnemonic histogram identical
          -- off gfx125x this is a no-op.
  gfx1250 50/50 symbols, exactly 12 differ and all 12 are quantized. Every unquantized symbol,
          which is what runs here, is instruction-for-instruction identical.

Of those 12, the PUSH-quantized ones move by -40..-111 instructions, all of it the barrier. Only
_bf16_p2p_fp8_blockwise moves for real, 81401 -> 104013, giving up its one tensor_load_to_lds: PULL
blockwise was the case the tile fold's scale prefetch was written for. That is the trade being
made, not an oversight.

Co-authored-by: Cursor <[email protected]>
… host side too

The previous commit took quantization out of the TDM body. The host had not caught up: it still
selected the _p2p blockwise symbol on gfx125x and still reserved PULL LDS tiles for it, for a
kernel that no longer has a tile. That is a layout disagreement, not a tuning choice -- it costs
occupancy for nothing and can raise on the LDS budget check.

Removed, because the measurement each one rests on was taken with the tile fold in place:
  _comb_qpull / MORI_COMB_QPULL   PUSH 3646.2us against PULL 1410.9us. Blockwise is PUSH on every
                                  arch now.
  _comb_qpre_mode / MORI_COMB_QPRE[_BN|_WPB]
                                  the separately launched quantise pass, 1011.3us -> 367.6us. Only
                                  PULL blockwise could use it: PUSH quantises into the peer's slot,
                                  which is the transport itself and not a separable pass.
  _qpull_bwq, qpre, kernel_ext_flag, _comb_env_int
                                  everything those two reached.

That leaves two kernels nobody launches -- launch.cpp only ever builds _nop2p names -- so
EpCombineIntraNodeKernel_bf16_p2p_fp8_blockwise and EpCombineQuantizeInputKernel_bf16 go with them.

Two-tree ISA diff against the previous commit, same container and compiler:
  gfx1250 every common symbol identical, 50 -> 48 symbols, s1-only is exactly those two (104013
          and 11839 instructions). Disassembly 737265 -> 621409 lines.
  gfx942  same shape, 50 -> 48, s1-only the same two (88794 and 10974).

The modified tree imports in the container with the three helpers gone and no reference left to
_qpull_bwq, qpre or kernel_ext_flag in _combine_shared_mem or combine.

Co-authored-by: Cursor <[email protected]>
…space

The RR tile loop cut consecutive chunks out of the block's strided subset, so once a block's share outgrew kRRTile the tiles stopped spanning the recv space. That space is clustered by source rank, which is the destination peer on this side, so a tile covering only part of it holds no token at all for some peers and the block drives 2-3 links instead of 4. Interleaving the draw restores the property at any size, and is the identical code whenever the share fits one tile.

Measured 64x16 EP4 bf16 ZC=0, push isolated as PUSHONLY - (PUSHONLY+NOPUSH): maxtok 4096 130.8 -> 130.4us and 8192 254.3 -> 253.2us, both one tile either way and the controls for this change; 16384 822.0 -> 497.7us. Push scaling is linear again, 1.94x then 1.97x per doubling, against 1.94x then 3.23x before.

The deficit was entirely instantaneous peer mix. MORI_COMB_NOROUTE, which keeps every other property of the loop and only makes the spread uniform, read 515.3us against the unfixed 822.0; real routing now reads 497.7 against its 520.1, the relation it already had at 4096.

Co-authored-by: Cursor <[email protected]>
…nch tracer

_comb_pull_default() returned "off" unconditionally, so force_pull was False on every production
path and everything it gated was dead code: the host d2d stage into the registered buffer, the
"kernel" mode its own docstring marks KNOWN WRONG (rc=1 at EP4, max diff 3.75 against tol 0.159),
the "both" diagnostic, the force_pull parameter of _combine_shared_mem and its two
"not force_pull" arms, the force_pull term in is_push, and the
_tr = "_p2p" if force_pull else "_nop2p" suffix pick, which is now just _nop2p.

The measurements those docstrings carried are kept, moved into _intranode_combine_default_launch
where the 16-warp default is actually decided. That is the one claim still load-bearing: PULL
cannot take 16 warps (458 KB of tiles against a 320 KB budget, the reservation declines and the
kernel falls back to the lane gather at 1166.4us) while PUSH scales with it, so the width belongs
to the transport rather than to the buffer flag.

MORI_EP_TRACE_LAUNCH and _launch_traced go with it: printing the symbol, geometry and LDS once per
distinct launch shape is diagnostics, not production.

No reference to force_pull, _comb_pull_mode, _comb_pull_default, MORI_COMB_PULL,
MORI_EP_TRACE_LAUNCH or _launch_traced is left under python/mori, src/ops, tests or examples.

Measured on gfx1250 EP4 bf16 hidden 7168, 64 blocks, check armed, against the same deployed tree
immediately before the change, exercising both surviving symbols:
  ZC=0 16384 wpb 16 (_nop2p)  683.5 -> 686.8us  (1242.2 -> 1236.4 GB/s)
  ZC=1  4096 wpb  8 (_p2p)    168.1 -> 167.7us  (1262.8 -> 1265.7 GB/s)
rc=0 on every row; both deltas are inside the run-to-run spread.

Co-authored-by: Cursor <[email protected]>
…t path

The driver every recorded dispatch/combine number on this branch was taken with
only ever existed on the node, so the numbers were reproducible by nobody else
and tools/_ep_test_selftest.sh referenced a file that was not in the tree.

It exported PYTHONPATH="$SRC", but the package is python/mori, so $SRC alone
never put the local tree on the path: with a tree editable-installed elsewhere,
import mori resolved to that other tree while the script printed "## HEAD <sha>"
for this one. Verified on a node holding both trees -- $SRC alone reaches
/root/mori_tdm/python/mori, $SRC/python:$SRC reaches /root/mori_epv2/python/mori.
That is how a post-fix 687.9us reading once passed for a pre-fix baseline.

Also drops two references to gates deleted in bed30dc: the [EPLAUNCH] grep,
which can no longer match anything, and MORI_COMB_PULL=off in the ZC comment,
now that ZC=0 always takes _nop2p again.

Exercised with tools/_ep_test_selftest.sh (stubs, no GPU): spec parsing, the '!'
check-arming, BASE versus per-spec gates, geometry substitution and the awk field
extraction all behave.

Co-authored-by: Cursor <[email protected]>
… sweep

The driver printed one row per gate spec at a single token count, which is the
wrong shape for the question it is usually asked: both combine transports change
rank with payload size, so a single point invites reading a crossover that is not
there. It now sweeps 64..16384 and prints dispatch, combine PUSH ZC=0 and combine
PULL ZC=1 side by side, two runs per row, dispatch taken from the PUSH run because
ZC does not touch that phase.

Also stop omitting the geometry flags to mean "no opinion". An absent flag never
reaches _resolve_launch_params: the bench substitutes _get_default_launch_config()
first and passes the result down as an explicit value, so the library's per-body
default -- the shipping geometry -- was unreachable. That table is a gfx942/FlyDSL
artefact and on gfx1250 it is wrong twice: at WS<=4, maxtok>128 it gives ZC=0 a
768x8 dispatch with a 256x14 combine, and gives ZC=1 a 192x32 dispatch, whose
32*7168*2 = 458,752B of LDS exceeds the 327,680B budget, so the ZC=1 column did
not read slow, it died on hipModuleLaunchKernel with HIP error 1. Sending a literal
0 is what asks for the per-body default, since _resolve_launch_params treats
bn/wpb <= 0 as "apply it".

MEASURED on gfx1250 EP4 bf16 hidden 7168, one continuous window, check armed on
all nine rows, rc=0 every row. 4096 reads dispatch 1231.2 (172.4us), PUSH 1111.0
(191.1us), PULL 1264.8 (167.9us), within 0.1-1.9% of the recorded curve. 16384
PUSH reads 1227.9 (691.5us) against the 847.3 (1002.4us) that curve was taken at,
which is 464e4fa showing up on a full sweep rather than at a single point.

Co-authored-by: Cursor <[email protected]>
The default spec was "full=", which runs with MORI_BENCH_SKIPCHECK=1, so the
table a bare invocation printed was unfalsifiable: the failure this driver
actually catches is a kernel that got faster by dropping tokens, and with the
check off that reads as a win rather than as a bug. It costs a comparison pass
per run, not a second measurement, and every row of the curve recorded in the
handoff was taken checked anyway -- so checked is what the default should
reproduce. SPECS="full=" still drops it, for when the target is a hang rather
than a number.

Co-authored-by: Cursor <[email protected]>
…the compile

_tunable_defines() returns [] since the kernels took their transport configuration
into the arch macros, so the MORI_COMB_* / MORI_DISP_* env-to--D route is gone.
SPECS="a=; b=MORI_COMB_NOPUSH=1" therefore compiles one kernel and prints two rows
of the same number, which reads as "the gate is worth nothing" when it means "the
gate is not there" -- the failure mode the evidence rule calls an invalid
experiment, and the driver was still advertising it as its headline feature. The
machinery stays, because _tunable_defines() is the one place a -D has to go back,
and it is also what keys the build cache.

Same class of staleness in the BARSLEEP note, which cited jit/core.py for a default
that is now the compile-time define MORI_COMB_BARSLEEP at intranode_1250x.hpp:58,
and implied a variable a caller could still set.

Co-authored-by: Cursor <[email protected]>
…ing about it

The previous commit documented that SPECS and BASE reach no compile, which leaves
the trap in place and asks every reader to notice a paragraph before trusting a
row. jit/core.py:_tunable_defines() returns [], so a MORI_COMB_* / MORI_DISP_* in
the environment is inert, and the mechanism could only ever produce two rows of
the same number labelled as an A/B. Machinery that cannot do the thing it is named
after is worse than no machinery.

SPECS, BASE and the '!' suffix are gone; the check is now CHECK=0/1, which is what
the '!' had been reduced to once the default armed it. CBNS survives because it
drives a real CLI flag and now prints one whole table per block count. The header
comment keeps the explanation, since the next person to want a gate A/B needs to
know it starts in _tunable_defines(), not here.

MEASURED after the change, gfx1250 EP4 bf16 hidden 7168, 4096 tokens, check armed,
rc=0: dispatch 1234.7 (171.9us), PUSH 1098.2 (193.3us), PULL 1261.3 (168.3us) --
0.3% or less from the same row before it, so the argument-passing rework did not
move the numbers.

Co-authored-by: Cursor <[email protected]>
It sat between building the access descriptor and the hipMemSetAccess retry loop,
unconditional and at ERROR severity, so every allocation on the cco backend
printed a line that reads like a failure and is not one. It was a bring-up probe
for the device-mismatch question and outlived it.

Co-authored-by: Cursor <[email protected]>
Mode 0 is the only one that was ever compiled, and it is what ships. Mode 1, the
grouped shuffle-then-single-store, was measured and never adopted. Mode 2 does not
store the scales at all and is documented in the header as producing wrong
results: it existed to put an upper bound on what mode 1 could be worth, which is
a question that has been answered. A knob whose non-default settings are one dead
alternative and one wrong answer is not configuration, and shipping the wrong
answer inside a public header invites someone to reach for it.

Behaviour-preserving by construction: with QSCW at 0, kGroupStore and
kNoScaleStore were both false, so the branch that remains is the branch that was
compiled. VERIFIED on gfx1250 EP4 hidden 7168 after deleting the 1.8G JIT cache,
so the changed header was recompiled rather than served from it: fp8_blockwise
4096, the only path through this quantizer, check armed, rc=0; bf16 control in the
same window reads dispatch 1235.3 (171.9us), PUSH 1104.3 (192.3us), PULL 1267.1
(167.6us), unchanged.

Co-authored-by: Cursor <[email protected]>
… of the branch

tools/ep_warpsize_preflight.hip.cpp and its runner were written to answer one
question during bring-up -- what warpSize the target actually reports -- and
nothing in the tree calls them. They stay on disk as untracked scratch, next to
the other tools/_*.sh drivers, rather than asking a reviewer to read 224 lines
that ship no behaviour.

docs/MORI_JIT_ARCHITECTURE.md carried a whitespace-only edit: two spaces where
there were four before a trailing comment, which git diff --ignore-all-space
reports as no change at all and which broke that line's alignment with the two
around it. Restored to origin/main.

Co-authored-by: Cursor <[email protected]>
… not the bench table

_get_default_launch_config is a gfx942 tuning artefact that the bench consults
whenever the caller passes no geometry, and it then hands the result down as an
explicit value -- so the library's per-body defaults, which are the shipping
geometry, were unreachable by default on gfx125x. The table had been corrected in
one cell to cover that, and both halves of the correction were wrong.

The zero-copy cell held 192x32. That was true when written; then dispatch moved to
the TDM body that stages one whole token tile per warp, and 32 warps became a
458,752 B request against gfx1250's 327,680 B budget. Combine raises on an
over-budget reservation, dispatch has no such check, so this was not a slow default
but one that cannot launch: EP4 bf16 hidden 7168 zero-copy above 128 tokens failed
in hipModuleLaunchKernel for anyone who did not pass geometry by hand.

The other cell was never touched and still handed gfx1250 the gfx942 combine, which
is what the deleted comment itself called badly under-configured.

Now the arch test comes first and gfx125x returns zeros, i.e. no opinion, which
_resolve_launch_params answers with _intranode_{dispatch,combine}_default_launch --
numbers that carry their own sweeps and, unlike a single table cell, tell PUSH and
PULL apart.

Measured on gfx1250, EP4 bf16 hidden 7168, 4096 tokens, no geometry flags, check
armed, rc=0 both:

    zero-copy 1  resolved dispatch 64x8, combine 64x8   combine 168.2us 1262.6 GB/s
                 (previously could not launch)
    zero-copy 0  resolved dispatch 64x8, combine 64x16  combine 193.2us 1098.6 GB/s
                 (was 256x14 at 219.4us / 967.5 GB/s, so 13.6% left on the table)
                 dispatch 172.6us 1230.6 GB/s

Both land within 1.1% of what ep_test.sh reads passing an explicit 0, which is the
same resolution path, so the defaults now reproduce the recorded curve.

The banner printed the geometry before anything had resolved it, and 0 there reads
as a launch with no blocks. It now says "library default" and the run reports what
was actually used, read back from _cached_{dispatch,combine}_launch rather than
recomputed -- recomputing means restating the is_push test, which reads use_ext,
kernel_type and quant_type together, and a restatement is what put an unlaunchable
constant in this table to begin with.

Co-authored-by: Cursor <[email protected]>
…ench and stress

The other two banners stopped printing a bare 0 for 'no opinion'; this one still
did, which on gfx125x now reads as a launch with no blocks.

Co-authored-by: Cursor <[email protected]>
@zhangfei829
zhangfei829 requested a review from jhchouuu August 8, 2026 12:38
zhangfei829 and others added 3 commits August 8, 2026 20:47
Formatter-only, no behaviour change. Run with the versions the hooks pin, black
25.1.0 and clang-format 20.1.8, because a different formatter version is a
different answer and the point is to match what CI will run.

Scoped to the files this branch changes rather than the whole tree, so the diff
does not pick up unrelated pre-existing non-conformance. Everything reformatted is
code this branch introduced: intranode_1250x.hpp is a new file, ep_async_ll.hip's
lines went over the column limit when fp8bwq was renamed to fp8_blockwise, and
pybind_ops.cpp's argument list is the one that gained cco_comm_ptr.

The only change that is not pure whitespace in effect is LDS_BARRIER in
intranode_ll.hpp, whose macro body gained line continuations, so the formatted tree
was compiled before committing: host ninja builds all 59 targets, and a device
genco for gfx1250 really compiles (100s, new content hash, not a cache hit) with
rc=0 on both.

Co-authored-by: Cursor <[email protected]>
The check encodes CUSPLIT_POOL_SLOTS, which only exists in the gfx125x TDM
dispatch body; every other arch runs the portable body, which indexes
dispTokIdToSrcTokId allocated for MaxNumTokensToRecv() outright and has no such
pool. Applied unconditionally it rejected configs those archs serve fine:
test_dispatch_combine_large_token_num (world_size=8, 65536 tokens/rank, hidden
7168) raised ValueError at construction on gfx950.

Gated on _is_gfx125x, the module''s single source of truth for which body runs.
Verified on 8x gfx950 (n06-21): the whole intranode file goes 335 passed / 640
skipped, that test included, where it failed before.

Co-authored-by: Cursor <[email protected]>
assert_worker_results called pytest.assume directly. requirements-build.txt asks
for pytest-assume, but a test environment can still be missing it, and then the
call raises AttributeError from inside the reporting path -- so the failure is
reported as a complaint about the reporter and the worker''s message, the only
description of what actually broke, never appears. Fall back to one pytest.fail
carrying every failing rank''s message.

Co-authored-by: Cursor <[email protected]>
@zhangfei829
zhangfei829 merged commit ae9635f into main Aug 8, 2026
10 checks passed
jhchouuu added a commit that referenced this pull request Aug 11, 2026
A second kernel backend for python/mori/ops/dispatch_combine_v2/, behind the same
op class as the existing FlyDSL one. Callers keep writing

    op = EpDispatchCombineOp(cfg, comm)

and get whichever backend cfg.kernel_backend (or MORI_V2_KERNEL_BACKEND) names,
defaulting to flydsl. The two agree element-for-element at 8 ranks.

Why
---
debug-aa's kernels carry 69 environment gates and 323 `#if` sites, and the cache
key is reassembled by hand in cache.py. That is how NOQUANT once failed to reach
the key and an A/B measurement silently reused the fully-enabled binary. The JIT
here removes the class of bug rather than the instance: the Cfg struct IS the
specialisation, its rendered text IS the source, and that text IS the cache key,
so a config cannot reach hipcc without reaching the key.

Rebased onto main (PR #532)
---------------------------
The FlyDSL dispatch/combine landed on main via #532 (cleaned up) plus #529
(FlyDSL 0.3) and #530 (retune), and became a real package. This backend is
re-applied on top of that: main's FlyDSL files (intranode_kernels, tuning_configs,
flydsl_prims, flydsl_compat) are kept verbatim, and the seam is split out of
main's op rather than the older debug-aa copy. The whole submodule now uses
relative imports; __init__ exports the base from ep_op_base, so importing the
package -- and running the HIP backend -- needs no FlyDSL installed.

Layout
------
    include/mori/jit/v2/         render (+field-count guard) util toolchain compiler spec
    src/jit/v2/                  plan_api  (namespace mori::jit::v2) -> libmori_jit.so, pure CXX
    .../dispatch_combine_v2/     ep_cfg.hpp     Cfg + Args, HIP-free, both sides
                                 ep_spec.hpp    Request + the two Specs
    src/.../dispatch_combine_v2/ ep_intranode_kernel.hpp  DEVICE-ONLY, Cfg as NTTP
                                 ep_spec.cpp    -> libmori_ops_v2.so
    python/mori/jit/v2/          plan_api.py    ctypes binding to the plan_api C
                                                ABI (generic, op-agnostic)
    python/.../dispatch_combine_v2/
                                 dispatch_combine_op.py  config + op base + selector (entry)
                                 flydsl_backend.py       FlyDSL subclass
                                 hip_backend.py          HIP subclass
                                 ep_plans.py    loads libmori_ops_v2.so, exposes the EP plans

Adding a kernel is three files (Cfg, body, Spec) and one registration macro; the
Python binding needs no edit, because the Plan class is derived from schemas C++
publishes and its args struct size is asserted against C++'s own sizeof.

The kernels are ported from origin/main's intranode MoE kernel. That port is
mechanical because v1's entire symmetric-memory surface is two things:
SymmMemObjPtr::GetAs<T*>(pe) -- a two-dependent-load table lookup, 30 call sites
-- and three Shmem*WaitUntil* spin loops that carry no shmem state. So

    memObj->GetAs<T*>(pe)  ->  ccoGetLsaPeerPtr(win, pe, args.offRegion)

and 13 SymmMemObjPtr fields collapse to one window handle plus eight offsets. The
generated TU never includes mori/shmem, so it carries no device globals and needs
no per-module init.

One op, two backends
--------------------
The base owns the op: dispatch(), combine(), _pick(), the views, the routing
handle, the lifecycle. A subclass supplies three things -- _regions(cfg),
_build_kernels(cfg, arena), _unsupported(cfg). Behavioural differences are DATA
on the KernelSet (stages_in_kernel, self_resets_counters, capabilities), not
methods to override; the calling convention is the one thing that could not
become data, so each backend wraps its own in _build_kernels and the base calls
everything through one named signature.

The feature surface is strict inclusion, not overlap: the HIP backend does
bf16/fp32 gather and nothing else. So the capability gate runs at CONSTRUCTION,
before the arena is allocated -- asking it for fp8 names every missing feature
instead of producing wrong numbers at launch. Selecting a backend imports only
that backend, so the HIP path runs where FlyDSL is not installed.

Measured (8x MI355, gfx950, EP8 hidden=7168 topk=8, us at 128/512/4096 tok/rank)
-------------------------------------------------------------------------------
    dispatch   hip 47.5 / 128.8 / 857.4   flydsl 76.0 / 127.8 / 857.5
    combine    hip 57.8 / 124.4 / 781.8   flydsl 82.7 / 133.6 / 888.8

The combine gap at 4096 is the staging copy: FlyDSL issues a separate 311 MB
torch copy before the kernel, the HIP kernel does it inside and overlaps it with
the barrier wait -- ~1 us instead of ~104.

Single-instance compile is 1.6 s against 115 s for debug-aa's whole file (90
kernels, gfx1250), which is what makes compile-on-demand viable at all.

Decisions worth recording
-------------------------
* Arena offsets and rank are LAUNCH arguments, not Cfg fields. As Cfg they were
  in the key, so every arena layout and every rank compiled its own copy of an
  identical kernel. Measured: 48.0/131.3 us as runtime args vs 49.5/130.6 as
  constants -- inside noise, against 16 binaries per 8-rank run instead of 2.
  The gfx942 micro-benchmark that suggested the constant form was actively worse
  (VGPR 9 -> 22, the compiler loses "the base is uniform") is not contradicted.
* Cfg as a single C++20 structural NTTP, not positional template parameters.
  DeepEP and CK both use all-int positional expansion, where swapping two
  arguments still compiles and silently produces the wrong kernel.
* FieldCount<T>() makes a field missing from VisitFields a compile error. It
  needs C++20: under C++17 both gcc and clang treat "too many initialisers" as a
  hard error rather than a substitution failure.
* Host stays free of hipcc. Shared arithmetic is attribute-free constexpr, never
  __host__ __device__ -- the latter drags every host TU through hipcc. Guarded in
  CI by tools/jit_v2/check_host_device_split.sh.

Bugs found and fixed on the way, two of them pre-existing
---------------------------------------------------------
* The combine barrier needs a release fence in every block, not just the
  publisher: every block stages tokens some other block gathers. Half the tokens
  came back wrong at 80 blocks. origin/main has the same hole.
* cco left hipErrorNotSupported (801) latched in the HIP runtime's sticky error
  slot; torch's next launch reported it as its own. That is the whole of the
  long-standing "cco breaks torch GPU kernels" symptom -- one-shot rather than
  intermittent, because reading the flag also clears it. Cleared at the
  Communicator.init boundary; the real fix is to stop latching it.
* The flat (pe, slot) stride must be the recv capacity, and the null sentinel
  must use the same stride, or a deduped slot decodes to a real peer.
* DefaultSourceDeps listed src/ops/dispatch_combine, which is a SIBLING of
  src/ops/dispatch_combine_v2 -- the v2 kernel bodies were not in the cache key,
  so editing one reloaded a stale hsaco.

Verified
--------
On top of main (ae9635f): C++ test_jit_core 24/24 and the host/device split
guard pass from a clean host build against main's headers. On 8x MI355 (gfx950):
package imports flydsl-free, both backends resolve lazily; test_op.py passes
under both backends (LEC capability-gated off for hip); backend parity is
element-for-element with 0 failures at ct=8/64/512 and exit 0. The kernel sources
are unchanged from the pre-rebase branch, so the measured numbers above still
hold. FlyDSL's scatter, fp8_blockwise, StdMoE, per-token-scales and lifecycle
paths are untouched. gfx1250 compile-only.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
isytwu pushed a commit that referenced this pull request Oct 8, 2026
…ped by #532 (#675)

* fix(ep): restore replay-mode backward payload dispatch in IntraNode kernel

The gfx1250 bring-up split cache-routing dispatch into three non-replay phases and removed the replay branch, so MoriCombine.backward's replay dispatch sent no payload, leaving grad_x stale and causing exploding grad norms. Re-add the replay path: read (destPe, destTokId) back from the cached dispDestTokIdMap and scatter weights, indices, scales, and tokens. Token counters are intentionally untouched because the host derives total_recv from the routing handle in replay mode.

* test(ep): guard replay-mode dispatch payload in routing-handle test

The replay-correctness test only checked routing-map immutability and the recv
token COUNT, so the #532 regression that dropped the replay branch of
EpDispatchIntraNodeKernel_body (replay dispatch moved zero payload) still passed.

Route the same grad payload through a fresh cache-routing op and compare
downstream combine outputs (source-token order, invariant to recv-slot
assignment). Fails on the buggy kernel, passes with the restored replay branch.

Co-authored-by: Cursor <[email protected]>

* test(ep): use default-path dispatch as oracle in replay payload guard

The cache-routing reference op in the replay-correctness payload guard still
relied on a routing handle, making it vulnerable to the same class of bugs as
the replay path. Switch the reference to the fully independent default path:
default dispatch populates the op-owned routing maps, so the combine reads them
directly and serves as a bug-independent oracle for the scattered payload.

---------

Co-authored-by: Cursor <[email protected]>
zhangfei829 added a commit that referenced this pull request Nov 9, 2026
EP v1 got a cco backend in #532 so that it could run on gfx1250, where shmem init can hang. The previous commit took gfx125x away from EP v1, and nothing else selects the backend: on wave64 it was opt-in with MORI_EP_COMM=cco, and no CI job, test or caller sets that except the backend's own guard test.

Removed: the MORI_EP_COMM switch and the process-wide cco communicator on the Python side; EpDispatchCombineHandle's cco_comm_ptr argument and its cco arena (the window, the sub-region bookkeeping, FinalizeCcoAllocs); the cross-node guard that #894 added for this backend, with its test; the shmem-init skip in bench_dispatch_combine.py; and mori_ops' link against mori_cco, which only this code used. MallocSymm and FreeSymmByLocalPtr stay as the handle's shmem allocation helpers, so their callers are unchanged.

Kept: ccoGetPeerPtr and CCO_GDR_CAPABLE in the cco library, which the torch SymmetricMemory backend and the known-issues workaround use; and the s_sleep in the intranode cross-device barrier, which runs on every wave64 GPU. Only its comment is gone: it described a hang on the removed backend under a dispatch kernel that no longer exists. An EP v2 comment that named EpDispatchCombineHandle::MallocSymm as the arena now names SymmArena, which is what EP v2 allocates from.
zhangfei829 added a commit that referenced this pull request Nov 9, 2026
…lockwise

#532 gave WarpQuantizeToFp8Blockwise a warpSize == 32 branch for EP v1's gfx125x combine. Only EP v1 calls the function (intranode.hpp, low_latency_async.cpp; EP v2 does not), and EP v1 now refuses wave32 GPUs, so nothing can reach the branch. On wave64 it was already compiled out.
zhangfei829 added a commit that referenced this pull request Nov 10, 2026
EP v1 got a cco backend in #532 so that it could run on gfx1250, where shmem init can hang. The previous commit took gfx125x away from EP v1, and nothing else selects the backend: on wave64 it was opt-in with MORI_EP_COMM=cco, and no CI job, test or caller sets that except the backend's own guard test.

Removed: the MORI_EP_COMM switch and the process-wide cco communicator on the Python side; EpDispatchCombineHandle's cco_comm_ptr argument and its cco arena (the window, the sub-region bookkeeping, FinalizeCcoAllocs); the cross-node guard that #894 added for this backend, with its test; the shmem-init skip in bench_dispatch_combine.py; and mori_ops' link against mori_cco, which only this code used. MallocSymm and FreeSymmByLocalPtr stay as the handle's shmem allocation helpers, so their callers are unchanged.

Kept: ccoGetPeerPtr and CCO_GDR_CAPABLE in the cco library, which the torch SymmetricMemory backend and the known-issues workaround use; and the s_sleep in the intranode cross-device barrier, which runs on every wave64 GPU. Only its comment is gone: it described a hang on the removed backend under a dispatch kernel that no longer exists.
zhangfei829 added a commit that referenced this pull request Nov 10, 2026
…lockwise

#532 gave WarpQuantizeToFp8Blockwise a warpSize == 32 branch for EP v1's gfx125x combine. Only EP v1 calls the function (intranode.hpp, low_latency_async.cpp; EP v2 does not), and EP v1 now refuses wave32 GPUs, so nothing can reach the branch. On wave64 it was already compiled out.
zhangfei829 added a commit that referenced this pull request Nov 12, 2026
* refactor(ep): remove the EP v1 gfx125x code

EP v2 is the dispatch/combine path on gfx125x. EP v1 keeps only its portable body and now refuses to start on a wave32 GPU instead of launching kernels sized for wave64.

Removed: the gfx125x TDM bodies (src/ops/dispatch_combine/intranode_1250x.hpp), the per-arch body selector (intranode_entry.hpp) with its _ENTRY wrapper macros, tools/ep_test.sh, and on the Python side the gfx125x launch geometry, LDS reservations, staging-capacity check, cco default and wave32 detection. The JIT no longer passes -DMORI_HOST_GFX125X, which nothing reads any more, and EP v2 picks its default backend without importing EP v1.

The cco backend stays, selected with MORI_EP_COMM=cco.

* refactor(ep): remove EP v1's cco backend

EP v1 got a cco backend in #532 so that it could run on gfx1250, where shmem init can hang. The previous commit took gfx125x away from EP v1, and nothing else selects the backend: on wave64 it was opt-in with MORI_EP_COMM=cco, and no CI job, test or caller sets that except the backend's own guard test.

Removed: the MORI_EP_COMM switch and the process-wide cco communicator on the Python side; EpDispatchCombineHandle's cco_comm_ptr argument and its cco arena (the window, the sub-region bookkeeping, FinalizeCcoAllocs); the cross-node guard that #894 added for this backend, with its test; the shmem-init skip in bench_dispatch_combine.py; and mori_ops' link against mori_cco, which only this code used. MallocSymm and FreeSymmByLocalPtr stay as the handle's shmem allocation helpers, so their callers are unchanged.

Kept: ccoGetPeerPtr and CCO_GDR_CAPABLE in the cco library, which the torch SymmetricMemory backend and the known-issues workaround use; and the s_sleep in the intranode cross-device barrier, which runs on every wave64 GPU. Only its comment is gone: it described a hang on the removed backend under a dispatch kernel that no longer exists.

* refactor(ep): drop the wave32 branch EP v1 left in WarpQuantizeToFp8Blockwise

#532 gave WarpQuantizeToFp8Blockwise a warpSize == 32 branch for EP v1's gfx125x combine. Only EP v1 calls the function (intranode.hpp, low_latency_async.cpp; EP v2 does not), and EP v1 now refuses wave32 GPUs, so nothing can reach the branch. On wave64 it was already compiled out.

* refactor(ep): warn that EP v1 ignores MORI_EP_COMM

MORI_EP_COMM=cco selected EP v1's cco backend on wave64. With that backend removed the variable did nothing, so a caller who still set it got shmem without a word. EP v1 now logs a warning when the variable is set.

* docs(ep): stop naming the files the EP v1 gfx125x removal deleted

MORI_JIT_V2_DESIGN.md named tools/ep_test.sh and src/ops/dispatch_combine/intranode_1250x.hpp, and the EP v2 README named the latter. The sentences now say what those files were: v1's shipping defaults, and v1's gfx1250 kernels.
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