TECHNOLOGY

AITER FlyDSL sorting: graph workspace ownership and concurrent replay

In this article
THE QUICK TAKE

Graph-captured scratch must have a valid concurrent ownership lifetime; the report does not establish serving-wide accuracy loss or a performance effect.

A scratch buffer can be safe for serial calls and unsafe when captured GPU graphs replay concurrently. The AITER FlyDSL sorting report illustrates that distinction in a mixture-of-experts routing path. Its evidence concerns a specific concurrent replay experiment, rather than a demonstrated accuracy failure across all production model serving.

Retain the tested sorting path

The original issue reports incorrect sorting IDs, weights, expert IDs and valid counts when graphs containing the FlyDSL sort replay together on different streams. The reporter identifies a particular gfx950 software and GPU setup with the optional FlyDSL sorting path enabled.

The report distinguishes the affected multiphase case from tested smaller one-shot cases. It also describes comparison paths using private workspaces and another sorting implementation. Results from those completed trials should not be expanded into proof that every geometry or runtime configuration behaves identically.

Follow scratch ownership through graph capture

The reported cause is a module-level workspace cache keyed by device. Separate captured graphs can record the same scratch address and then clear or overwrite data that another replay still needs. Serial execution avoids that particular overlap without proving that the buffer is safe for concurrent use.

Keying a cache only by stream does not resolve every graph-lifetime issue. A graph can be captured on one stream and replayed on another. The relevant ownership interval must cover the executions that actually overlap, not merely the place where the original Python call occurred.

Distinguish a proposed fix from a complete validation result

The linked pull request proposes per-call workspace allocation and adds ownership and concurrent-replay regression coverage. Its description separates historical validation builds from later rebases that were not rerun on the GPU. That version boundary belongs with any statement about passing tests.

The same investigation also identifies a separate existing race in the sorting kernel’s local shared-memory handling. The pull request describes a dependency on the corresponding barrier fix. A test failing after one change is therefore not automatically evidence that scratch ownership was the only defect or that one isolated patch establishes complete correctness.

Make the concurrency test demonstrate concurrency

The proposed regression uses a device-side gate so both graph replays are queued before either starts. The description explains that an earlier test without this control did not catch the problem. Launching operations on different streams alone does not establish that the contested execution windows overlapped in a particular test.

A useful negative control restores the implicated shared workspace while retaining other fixes. Reference comparisons should inspect the consumed routing outputs and downstream behavior, not only successful completion. A kernel can return without an execution error while producing an invalid routing layout.

Preserve the serving and performance boundary

The reporter explicitly does not establish that a serving workload executes the affected sorts concurrently, and makes no serving-accuracy or performance claim. We retain that limitation. This is a reproducible kernel-path investigation, not a measured fleet incident rate or a general comparison between accelerator vendors.

We reviewed the issue and proposed-fix description without executing the reproducer or changing ROCm. The reproducible-stack guide covers recording builds, and the document-split guide covers a separate model-evaluation concern. The practical lesson is to align scratch lifetime, graph ownership and a test that proves the intended overlap actually occurred.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles