Repository navigation
fix(ssp-batch): extents of at least one in the target data maps of the age sums (A100) - #144
Merged
Merged
Conversation
…e age sums A set with no points, effective entries, segments or pieces (the groups of free isochrone modifications) made 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; the next allocation on that host address then aborts with 'variable in data clause is partially present' (csp_batch, csp_batch_grad, c_batch_grad and, in FP32, batch_equivalence on the A100). Clamp the extents with max(1, ...). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MXDRCtroonzsQBPSLzjyjz
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (85.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## feat/hotpath-tour-operators #144 +/- ##
==============================================================
Coverage ? 74.93%
==============================================================
Files ? 51
Lines ? 14481
Branches ? 6089
==============================================================
Hits ? 10852
Misses ? 1482
Partials ? 2147 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
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_gradandc_batch_grad(and, in FP32,batch_equivalence) abort withvariable in data clause is partially present on the device. CPU builds pass;mainpasses.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 ofssp_batch_age_sums_zandssp_batch_age_sums_adjoint. No effect on the kernels' loop bounds.Verification (A100,
OMP_TARGET_OFFLOAD=MANDATORY)tools/compare_buildsoverparam_cases.psvandstress_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); onlylib_mist_c3kfails (not in the data release). Identical FP32 numbers onmain.benchmark_csp_batch(FP32+cuBLAS),mainvs 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