Repository navigation
docs(hotpaths): the operator path in the tour - #143
Merged
elijahmathews merged 1 commit intoNov 19, 2026
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MXDRCs7ATQiqhT6RLPLXR5
elijahmathews
marked this pull request as ready for review
November 19, 2026 16:55
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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