Additional kernels & improved color reuse & multi-hop routing - #68
Open
luxfg wants to merge 64 commits into
Open
Additional kernels & improved color reuse & multi-hop routing#68luxfg wants to merge 64 commits into
luxfg wants to merge 64 commits into
Conversation
Establishes the hardware contract the shift-bundle lowering will rely on, after the per-hop SWITCH_ADV payload turned out to be inert in slots 1-7: senders hand their router over in descending send order, triggered by a wavelet they emit themselves, and statically routed receivers use a counter filter to pick out the block addressed to them. Also pins the filter arithmetic, which the manual describes ambiguously: a wavelet reaches the compute element iff counter <= max_counter, counting modulo limit1 + 1 from init_counter.
Takes the stream-bounds routing and emission layer wholesale. Its RouteConfig / ColorSwitchPlan model supersedes the private _emit_shift_schedules path this branch grew, which drove switches with a hop-indexed SWITCH_ADV payload that the hardware ignores past slot 0. The shift-bundle detector survives but is unwired for now; the tests that cover the old emitter fail until it is reconnected to ColorSwitchPlan.
…e at compile time
luxfg
marked this pull request as ready for review
August 20, 2026 09:04
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.
Summary
Compiler and sample work to pack more communication onto fewer colors, recycle task IDs across epochs, and run new kernels on WSE-2 and WSE-3.
Routing and color reuse
detect_shift_bundles; documented inirspec/docs/spatial/routing_wse.md).FilterConfig, standalone routes) instead of a per-hop switch-advance wavelet. WSE-2 local flips use.advance_switchon the last data wavelet; WSE-3 emitsSWITCH_ADV..ut_id) independently of queues so an input and an output of the same number can run together.Task IDs
@get_data_task_idtakes the fabin input queue, not a color. Program queues are 2–7 (memcpy owns 0 and 1). Local-task allocation skips memcpy-reserved IDs, including WSE-3’s color-21LOCAL_MEMCPYD2H_DATAhole.Samples
samples/spatial/blas/spmv.sptl).Kkeys per PE andRindependent rows (samples/spatial/sort/).odd_even_sort_1D_looped.sptl).shearsort_2D_looped.sptl, WSE-3; four inbound colours in one epoch).samples/spatial/simple/).