Skip to content

fit-config: co-sweep coordinator.max_in_flight (roadmap follow-up) - #2

Merged
cekkr merged 1 commit into
mainfrom
fit-config-max-in-flight-cosweep
Jul 11, 2026
Merged

cekkr merged 1 commit into
mainfrom
fit-config-max-in-flight-cosweep

Conversation

@cekkr

@cekkr cekkr commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

The fit finder now varies coordinator in-flight depth as a fourth candidate axis alongside grid shape / op distribution / memory split. Every in-flight slot costs LUTs in wau_resource_model_v1 but the depth only buys makespan when independent flows overlap, so swept depths are workload-bounded (_fit_max_in_flight_values): single-flow workloads collapse to depth 1 (cycle-identical there, reclaiming unused-slot LUTs) while multi-flow workloads try 1, powers of two, the base value, and the flow-count ceiling (clamped to [1,16]). The LUT tiebreaker keeps the cheapest depth that doesn't cost makespan.

Kept additive: CandidateKnobs.max_in_flight defaults to None so arch-search reports stay byte-identical (no _mif suffix, no knobs key); only fit-config sets it. --max-in-flight overrides the swept set; the set is reported as max_in_flight_swept and encoded per candidate as a _mif id suffix (round-tripped by emit_fit_config).

Tests: FitMaxInFlightSweepTests + arch-search byte-identity guard + two CLI tests. Full Python suite 112 pass; iverilog RTL suite passes.

The fit finder now varies coordinator in-flight depth as a fourth
candidate axis alongside grid shape / op distribution / memory split.
Every in-flight slot costs LUTs in wau_resource_model_v1 but the depth
only buys makespan when independent flows overlap, so swept depths are
workload-bounded (_fit_max_in_flight_values): single-flow workloads
collapse to depth 1 (cycle-identical there, reclaiming unused-slot LUTs)
while multi-flow workloads try 1, powers of two, the base value, and the
flow-count ceiling (clamped to [1,16]). The LUT tiebreaker keeps the
cheapest depth that doesn't cost makespan.

Kept additive: CandidateKnobs.max_in_flight defaults to None so
arch-search reports stay byte-identical (no _mif suffix, no knobs key);
only fit-config sets it. --max-in-flight overrides the swept set; the set
is reported as max_in_flight_swept and encoded per candidate as a _mif<N>
id suffix (round-tripped by emit_fit_config).

Tests: FitMaxInFlightSweepTests + arch-search byte-identity guard + two
CLI tests. Full Python suite 112 pass; iverilog RTL suite passes.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@cekkr
cekkr merged commit b45a1c8 into main Jul 11, 2026
4 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