Skip to content

docs(hotpaths): the operator path in the tour - #143

Merged
elijahmathews merged 1 commit into
feat/hotpath-tour-examplefrom
feat/hotpath-tour-operators
Nov 19, 2026
Merged

elijahmathews merged 1 commit into
feat/hotpath-tour-examplefrom
feat/hotpath-tour-operators

Conversation

@elijahmathews

Copy link
Copy Markdown
Owner

Adds a short section to doc/HOT_PATH_TOUR.md on the operator path (the third SSP source): what S is, the per-group operators, the per-model age sums, and where the shared steps begin. Docs only. Stacked on #142.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MXDRCs7ATQiqhT6RLPLXR5

@elijahmathews
elijahmathews added this pull request to stack #114 November 19, 2026 11:58
@elijahmathews
elijahmathews marked this pull request as ready for review November 19, 2026 16:55
@elijahmathews
elijahmathews merged commit 5c17c7a into main Nov 19, 2026
@elijahmathews
elijahmathews deleted the feat/hotpath-tour-operators branch November 19, 2026 17:49
elijahmathews added a commit that referenced this pull request Nov 19, 2026
…e age sums (A100) (#144)

## What

Verification of stack #112-#143 on an A100 (nvhpc 25.1, cc80, data-v4)
against `main` (38d6e35). One defect found, fixed here; merge this after
#143 (it is stacked on it).

**Defect.** On the A100 offload builds (FP64, FP32, FP32+cuBLAS),
`csp_batch`, `csp_batch_grad` and `c_batch_grad` (and, in FP32,
`batch_equivalence`) abort with `variable in data clause is partially
present on the device`. CPU builds pass; `main` passes.

**Cause.** A set with no points, effective entries, segments or pieces
(the groups of free isochrone modifications, #113) makes the age-sum
scratch arrays zero-size. Under nvfortran 25.1 a zero-size array in a
`target data map(alloc:)` leaves a stale present-table entry whose count
is never released (it grows per call: 0+3, 0+63 in the reports). The
next array that lands on that host address aborts. So the symptom moves
with the allocator's layout (a test that passes at one commit fails at
the next), which is why a bisect over the stack is not monotonic: the
first failing PR head is #113 (a7bd9a5); #112 passes.

**Fix.** Extents of `max(1, ...)` for the set-dependent arrays of
`ssp_batch_age_sums_z` and `ssp_batch_age_sums_adjoint`. No effect on
the kernels' loop bounds.

## Verification (A100, `OMP_TARGET_OFFLOAD=MANDATORY`)

- Unit + regression suites, this branch: o64, o32, o32+cuBLAS: 70 OK, 0
failed, 1 skipped each. Tip of #143 without the fix: 3-4 failures per
offload build. CPU c64/c32 at the tip: 70 OK.
- `tools/compare_builds` over `param_cases.psv` and `stress_cases.psv`,
against CPU FP64: FP64 worst 4e-14 (pixels/mags), FP32 worst 5.9e-7 on
spectra and magnitudes (indices up to 8e-6 absolute, values of order
100); only `lib_mist_c3k` fails (not in the data release). Identical
FP32 numbers on `main`.
- `benchmark_csp_batch` (FP32+cuBLAS), `main` vs this branch, min of 2-3
reps: forward N=1e4 5.35 vs 5.34 us/model; free IMF 30.6 vs 30.6;
gradient 57.9 vs 57.0; free-IMF gradient 297 vs 297; FP64 forward N=1e4
7.84 vs 7.88. No regression.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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