Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ A draft rule set for the architect to review; each rule cites the rows it rests
arm's `T` is N_vis × S complex128 and OOMs from 1e6 visibilities at every radius; where it
runs it is slower — ~2× at sma, 17–21× at sdp81 (918 / 941 ms vs 53.7 / 45.2 ms).
3. **Meshes on CPU: trust the library gate.** numba `direct_conv` beats the NumPy FFT route below
nnz/col ≈ 66 (Delaunay) / ≈ 72 (rect) and loses above; the packaged gate
nnz/col ≈ 66 (Delaunay) / ≈ 72 (rect) and loses above; the then-packaged gate
(`interferometer_numba_nnz_per_source_max = 60`) sent every measured cell in this matrix to the
faster arm (no "(slower arm)" flags in the tables). At alma_high r3.5 the phase-1 JAX-CPU route is faster still
faster arm (no "(slower arm)" flags in the tables). Historical: since PyAutoArray#632 (`17caf228`) the packaged default is `null`, a two-constant cost model; see [route-gate phase 2](interferometer_route_gate_aris_2026_10.md). At alma_high r3.5 the phase-1 JAX-CPU route is faster still
(8.3 / 7.6 s vs FFT 9.4 / 9.6 s).
4. **The A100 wins every mesh cell, and the margin grows with the mask.** Best-CPU ÷ A100 is
8–33× at sma, 28–41× at sdp81, 11–69× at alma and 43–114× at alma_high (single thread vs one
Expand Down Expand Up @@ -84,8 +84,9 @@ A draft rule set for the architect to review; each rule cites the rows it rests

## Main matrix — Delaunay-1500, per-likelihood ms

Bold = the faster CPU arm. "gate-60 route" is where the packaged gate
(`interferometer_numba_nnz_per_source_max = 60`) sends the cell; "(slower arm)" flags a
Bold = the faster CPU arm. "gate-60 route" is where the 2026-09 packaged gate
(`interferometer_numba_nnz_per_source_max = 60`, since superseded; see
[route-gate phase 2](interferometer_route_gate_aris_2026_10.md)) sends the cell; "(slower arm)" flags a
cell the gate routes to the slower arm. A100 speed-up = best CPU arm ÷ A100 W~.

| N_vis | instrument | mask r | masked px | nnz/col | CPU numba | CPU NumPy FFT | gate-60 route | CPU JAX (r3.5, ph.1) | A100 W~ sparse | A100 dense arm (step sum) | A100 speed-up vs best CPU |
Expand Down
5 changes: 3 additions & 2 deletions results/notes/interferometer_mesh_cpu_breakdown_2026_09.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ and 95 % at alma_high. The fnnls solve is most of the rest.
evaluation.
- **Crossover.** numba stops winning at **nnz/col ≈ 66 (Delaunay) / ≈ 72 (rectangular)**.
Each is bracketed by two measured alma radii.
- **Gate.** The packaged gate of 60 already routes every measured cell to the faster arm. One
gate of about 70 would be slightly better for both meshes (see the gate verdict below).
- **Gate.** The then-packaged gate of 60 already routes every measured cell to the faster arm.
Historical: since PyAutoArray#632 (`17caf228`) the packaged default is `null`, a two-constant cost model; see [route-gate phase 2](./interferometer_route_gate_aris_2026_10.md).
One gate of about 70 would be slightly better for both meshes (see the gate verdict below).

Cells: `scripts/interferometer/likelihood_breakdown/{delaunay,pixelization}_numba.py`, harness
`scripts/misc/likelihood_breakdown/interferometer_pixelized_numpy.py`. SLURM:
Expand Down
1 change: 1 addition & 0 deletions wiki/campaigns/interferometer_likelihood.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
**Library PRs:** PyAutoArray#576 (+ PyAutoGalaxy#629, PyAutoLens#750), PyAutoArray#578 (released 2026.9.27.1); PyAutoArray#540, PyAutoArray#541, PyAutoArray#544, PyAutoArray#545 (released 2026.9.11.1; library speed-ups with no profiling note, see the 2026-09-27 journal entry); PyAutoArray#582 (released 2026.9.27.2); PyAutoArray#630, #631, #632 (Aris follow-ups, merged 2026-10-15, unreleased).
**Profiling PRs:** #312, #313, #319, #324, #328, #333; phase 3 #352 (merged 2026-09-28); phase 4 #358 (merged 2026-09-30); last decision-matrix cell under issue #369.
**Ledger:** [interferometer_likelihood_decision_matrix_2026_09.md](../../results/notes/interferometer_likelihood_decision_matrix_2026_09.md) (phase 4, the user-facing matrix), [interferometer_mge_breakdown_2026_09.md](../../results/notes/interferometer_mge_breakdown_2026_09.md), [interferometer_mesh_a100_breakdown_2026_09.md](../../results/notes/interferometer_mesh_a100_breakdown_2026_09.md), [interferometer_mesh_cpu_breakdown_2026_09.md](../../results/notes/interferometer_mesh_cpu_breakdown_2026_09.md); older context [numba_interferometer_verdict.md](../../results/notes/numba_interferometer_verdict.md); Aris route gate [interferometer_route_gate_aris_2026_10.md](../../results/notes/interferometer_route_gate_aris_2026_10.md) (#419).
**Pulse knowledge:** [task `interferometer_large_mask_aris` (Knowledge section)](https://github.com/PyAutoLabs/PyAutoPulse/blob/main/tasks/interferometer_large_mask_aris.md); decisions [adaptsplit-zero-weight-delaunay-only](https://github.com/PyAutoLabs/PyAutoPulse/blob/main/decisions/adaptsplit-zero-weight-delaunay-only.md), [interferometer-route-gate-cost-model](https://github.com/PyAutoLabs/PyAutoPulse/blob/main/decisions/interferometer-route-gate-cost-model.md).
**Mind contract:** epic `interferometer-likelihood-campaign` (named in the records; not in `epics.md`); phase map `draft/research/autolens_profiling/interferometer_mesh_breakdown_numba_cpu_decision_matrix.md`.
**Next:** phase 4 has shipped: #358 merged, and the last cell (CPU rect alma_high r5.0, RAL 375978_3) was filled under issue #369. Every decision-matrix cell is now measured, blocked or not measured, with a citation; none is pending. Remaining follow-ups are separate PyAutoPulse tasks: streaming scaling, the fixed-mapper curvature preload, the nnls memo guard and the W~ FFT-size levers.

Expand Down
Loading