You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The native Adams controller stays on the host on CUDA and HIP #362
On CUDA and HIP builds the native Adams march (SEP 39) keeps its controller on the host. Each trial reads its error norms back once and launches its kernels from the host, with the trial's source replayed as one device graph where its operations repeat. A controller on the device, choosing the step and order there, would remove the read-back and the host's launches. SEP 39 left this open.
If it is worth it, design device forms of the landing search and the order choice.
It must take the same steps as the host controller, whose decision traces are tested. Whether a device can branch this way within vendor graphs is unchecked, and is a suspicion of the main difficulty.
Needs a decision: whether to pursue this after the measurement. It would be a SEP, by the maintainer. I recommend not starting unless the read-back is above 20 % of a trial.
Done when
The share is recorded with device, case and date, and either a SEP is accepted or this closes on that number.
Checked against commit 8a9f764. Takes over the roadmap's entry "A device-resident Adams controller".
Measured, on the way to a decision. From the last kernel's end to the host's return, by an nsys trace with graph nodes on an NVIDIA A40 at 16 host threads: about 2.8 µs a trial, at most 14 µs at the 90th percentile.
Case
Trial
Read-back's share
he_rdw_averaged
237 µs
1.2 %
rdw
586 µs
0.5 %
radial_filament_256
3.3 ms
0.1 %
That's well under this issue's 20 %. I haven't run it on a data-centre card, where a trial is shorter. It would take a trial of about 14 µs for the read-back to reach 20 %, and SEP 39 measured 160 to 550 µs on an AMD Instinct MI325X. So I'd close this as not worth doing, and #520 says so. The ledger entry is in docs/dev/benchmarks.md, "A device step beyond its transforms".
Activity
jtravs commentedon Nov 5, 2026
Measured, on the way to a decision. From the last kernel's end to the host's return, by an
nsystrace with graph nodes on an NVIDIA A40 at 16 host threads: about 2.8 µs a trial, at most 14 µs at the 90th percentile.he_rdw_averagedrdwradial_filament_256That's well under this issue's 20 %. I haven't run it on a data-centre card, where a trial is shorter. It would take a trial of about 14 µs for the read-back to reach 20 %, and SEP 39 measured 160 to 550 µs on an AMD Instinct MI325X. So I'd close this as not worth doing, and #520 says so. The ledger entry is in
docs/dev/benchmarks.md, "A device step beyond its transforms".