Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
b992103
feat(sim): wire load_balance weighted decomposition (param, checks, o…
sbryngelson Jun 30, 2026
c00c8b2
feat(sim): minimal probe read for functional weighted decomposition
sbryngelson Jun 30, 2026
69227fe
fix(sim): load_balance min-cells floor only applies to axes split acr…
sbryngelson Jun 30, 2026
ffadfe0
fix(sim): conforming sizes_glb/loc assignment in probe; drop supersed…
sbryngelson Jun 30, 2026
c43c02a
fix(sim): scope num_procs_x/y/z to simulation (post_process build), a…
sbryngelson Jun 30, 2026
95398eb
feat(sim): rank_time_wrt param + m_rank_timing per-rank RHS-time diag…
sbryngelson Jun 30, 2026
adacca1
feat(sim): wire per-rank RHS-time diagnostic into stepper and data ou…
sbryngelson Jun 30, 2026
b637627
fix(sim): drop EE bubble load-weight term (calibration: K_bub*void ov…
sbryngelson Jun 30, 2026
f8cfe78
feat(sim): broaden rank-timing to include phase-change relaxation (t_…
sbryngelson Jun 30, 2026
cc7882d
fix(sim): rank-timing measures compute only (exclude halo exchange) +…
sbryngelson Jun 30, 2026
21c60ff
feat(sim): hybrid_weno + hybrid_weno_eps params and checks
sbryngelson Jun 30, 2026
99fd63e
feat(sim): WENO discontinuity sensor (density+pressure Jameson, stenc…
sbryngelson Jun 30, 2026
f94573c
feat(sim): hybrid WENO branch (linear-optimal in smooth cells) + sens…
sbryngelson Jun 30, 2026
0d1337e
fix(sim): allocate hybrid-WENO sensor scratch once (module-level weno…
sbryngelson Jun 30, 2026
33bd3aa
fix(sim): hybrid-WENO covers buffered domain (halo flagging) + PROHIB…
sbryngelson Jul 1, 2026
7efb010
feat(sim): hybrid_riemann + hybrid_smooth_flux params, defaults, and …
sbryngelson Jul 1, 2026
1ec23ae
feat(sim): generalize discontinuity sensor to velocity+volume-fractio…
sbryngelson Jul 1, 2026
08502db
feat(sim): hybrid_riemann cheap central/Rusanov flux in the 5-equatio…
sbryngelson Jul 1, 2026
9e484ac
feat(sim): hybrid_riemann cheap flux in the 6-equation HLLC block
sbryngelson Jul 1, 2026
5082b53
fix(sim): prohibit hybrid_riemann/hybrid_weno with non-WENO recon, we…
sbryngelson Jul 1, 2026
74b5877
feat(common): add m_box (t_box + partition arithmetic); relocate f_we…
sbryngelson Jul 1, 2026
f727133
refactor(common): s_mpi_decompose computes equal split via m_box (t_b…
sbryngelson Jul 1, 2026
ac2edef
test(sim): load_balance manual validation; document diagnostic gate
sbryngelson Jul 1, 2026
de24440
fix(common): explicit allocate for equal-split offsets (Intel noreall…
sbryngelson Jul 1, 2026
352f564
feat(sim): amr param + static-patch spec + SP1 gate (default off)
sbryngelson Jul 2, 2026
69f5c36
feat(sim): m_amr two-level static hierarchy (inert refined level-1); …
sbryngelson Jul 2, 2026
3bc4d4b
feat(sim): AMR conservative restriction + conservative-linear prolong…
sbryngelson Jul 2, 2026
66b209d
feat(sim): AMR fine-advance infrastructure (stage storage, globals sw…
sbryngelson Jul 2, 2026
ff1d75a
feat(sim): AMR no-subcycle two-level advance (per-stage coupling, end…
sbryngelson Jul 2, 2026
434eec1
feat(sim): AMR refluxing - per-stage flux registers close conservatio…
sbryngelson Jul 2, 2026
8269e79
refactor(sim): AMR region-based indexing + fixed max-size preallocati…
sbryngelson Jul 2, 2026
622b37b
feat(sim): AMR dynamic regrid - gradient tagging, padded bounding box…
sbryngelson Jul 2, 2026
e015a34
feat(sim): AMR subcycling groundwork - accumulating flux registers, s…
sbryngelson Jul 2, 2026
5f65b62
feat(sim): AMR subcycling - coarse at case dt, two dt/2 fine substeps…
sbryngelson Jul 2, 2026
8e1f8c3
fix(sim): prohibit amr + acoustic_source (dt-dependent RHS source, un…
sbryngelson Jul 2, 2026
247b2f3
feat(sim): AMR multi-rank owner model - containment, global-local ind…
sbryngelson Jul 2, 2026
725f50b
feat(sim): AMR multi-rank regrid - allreduced tag box, owner-window c…
sbryngelson Jul 2, 2026
2c1dd4e
refactor(sim): AMR copy-based coordinate swap (GPU-safe semantics, be…
sbryngelson Jul 2, 2026
2048cdb
feat(sim): AMR on GPU builds - device-resident fine fields, transfer-…
sbryngelson Jul 3, 2026
cc9719f
chore: AMR upstream hygiene - docs, python validation, message cleanu…
sbryngelson Jul 3, 2026
b203dc8
feat(sim): AMR GPU kernel-ported coupling (M2) - device-resident regi…
sbryngelson Jul 3, 2026
41530c4
feat(sim): AMR mirror-decomposed fine level (T1) - spanning patches, …
sbryngelson Jul 3, 2026
316c28b
feat(sim): AMR rank-local regrid under mirror decomposition (T2) - sp…
sbryngelson Jul 3, 2026
03b5951
feat(sim): AMR-weighted decomposition (SP7c) - fine-work-aware load_b…
sbryngelson Jul 3, 2026
a1a7e3a
Merge remote-tracking branch 'upstream/master' into up/mega
sbryngelson Jul 3, 2026
2b1e8a9
test(sim): AMR 3D validation - free-stream/blast/spanning/subcycle ga…
sbryngelson Jul 3, 2026
8dddd82
feat(sim): multi-fluid AMR (SP9a) - per-fluid conservative reflux, su…
sbryngelson Jul 3, 2026
9e936de
merge: multi-fluid AMR (SP9a) with 3D validation
sbryngelson Jul 3, 2026
a57dcb6
merge: 3D validation + multi-fluid AMR (SP9a) into the upstream PR br…
sbryngelson Jul 3, 2026
9064ecd
feat(sim): AMR restart - fine-level save/restore with regridded-box p…
sbryngelson Jul 3, 2026
b8a14ae
merge: AMR restart (SP10) into the PR branch
sbryngelson Jul 3, 2026
3003068
feat(sim): viscous AMR (SP11) - viscous flux registers, c/f-matched t…
sbryngelson Jul 3, 2026
6129592
fix(sim): AMR fine ghost coordinates for viscous stencil (SP11 np=2 e…
sbryngelson Jul 3, 2026
3c6e77d
merge: viscous AMR (SP11) + fine-ghost-coordinate fix into the PR branch
sbryngelson Jul 3, 2026
931470d
refactor(sim): AMR patch slots (amr_fine -> amr_slots, fixed pool arr…
sbryngelson Jul 3, 2026
bc32128
merge: AMR patch-slot infrastructure (SP12a T1) into PR branch
sbryngelson Jul 3, 2026
8bb32ed
feat(sim): AMR multi-patch - Berger-Rigoutsos clustering, min-separat…
sbryngelson Jul 4, 2026
11d46e3
refactor: rename AMR "patch" -> "block" (params, symbols, docs) to di…
sbryngelson Jul 4, 2026
fc65bad
merge: AMR multi-patch (SP12a) + patch->block rename into PR branch
sbryngelson Jul 4, 2026
7bf7bee
feat(sim): Euler-Euler bubbles AMR (SP13) - realizability-preserving …
sbryngelson Jul 4, 2026
00c9378
merge: Euler-Euler bubbles AMR (SP13) into PR branch
sbryngelson Jul 4, 2026
7bc7cde
feat(sim): phase-change (relax) AMR (SP15) - per-block pressure relax…
sbryngelson Jul 4, 2026
17a8e51
merge: phase-change (relax) AMR (SP15) into PR branch
sbryngelson Jul 4, 2026
a429c68
test(sim): AMR cross-feature golden coverage (viscous+multifluid+mult…
sbryngelson Jul 4, 2026
b816bc3
merge: AMR GPU-correctness + cross-feature golden coverage (blind spo…
sbryngelson Jul 4, 2026
5b72e1d
docs(sim): document AMR+surface_tension limitation as an explicit pro…
sbryngelson Jul 4, 2026
86c1038
feat(sim): chemistry AMR (SP16) - species sum/positivity prolongation…
sbryngelson Jul 4, 2026
37265de
merge: chemistry AMR (SP16, multi-rank) + surface-tension limitation …
sbryngelson Jul 4, 2026
267660c
docs: AMR feature documentation page
sbryngelson Jul 4, 2026
8354b1f
merge: AMR documentation page into PR branch
sbryngelson Jul 4, 2026
cdf9239
feat(sim): chemistry diffusion under AMR (SP17) - flux_src reflux at …
sbryngelson Jul 4, 2026
dbb1331
feat(sim): non-polytropic + polydisperse bubbles AMR (SP18) - per-blo…
sbryngelson Jul 4, 2026
f16d52d
docs: update AMR support matrix - chemistry diffusion + non-polytropi…
sbryngelson Jul 4, 2026
5522823
merge: finish chemistry (diffusion, SP17) + bubbles (non-polytropic/p…
sbryngelson Jul 4, 2026
1a5193d
feat(sim): QBMM bubbles AMR (SP19) - fine-resolution moment inversion…
sbryngelson Jul 4, 2026
21d5965
feat(sim): static immersed-boundary AMR (SP20) - per-block fine IB ma…
sbryngelson Jul 4, 2026
49db985
fix(sim): gate IB body straddling a rank seam under AMR (fine-IB imag…
sbryngelson Jul 4, 2026
e035a10
docs(amr): support matrix for QBMM-polytropic + static IB; seam-strad…
sbryngelson Jul 4, 2026
2dacb4b
fix(test): remove stray merge marker left in cases.py during SP20 che…
sbryngelson Jul 4, 2026
83a6f01
style: format m_checker AMR prohibit block after SP19/SP20 fold
sbryngelson Jul 4, 2026
b4463ef
merge: QBMM (SP19) + static IB (SP20) AMR into PR branch
sbryngelson Jul 4, 2026
2c43eb8
fix(test): restore dropped cases.append/stack.pop for QBMM AMR golden…
sbryngelson Jul 4, 2026
01d640b
fix(test): restore dropped cases.append/stack.pop for QBMM AMR golden…
sbryngelson Jul 4, 2026
87ef798
fix(sim): device-attach IB fine-swap under AMR GPU - detach/attach ib…
sbryngelson Jul 4, 2026
1f9a9bc
fix(sim): device-attach IB fine-swap under AMR GPU - detach/attach ib…
sbryngelson Jul 4, 2026
9fbe760
feat(sim): prescribed-motion moving IB under AMR (SP21) - per-substep…
sbryngelson Jul 4, 2026
53220a1
test(amr): moving-IB golden (SP21, 13945217) + non-poly bubble GPU to…
sbryngelson Jul 4, 2026
781aac9
feat(sim): prescribed-motion moving IB under AMR (SP21) - per-substep…
sbryngelson Jul 4, 2026
ac06c72
test(amr): moving-IB golden (SP21, 13945217) + non-poly bubble GPU to…
sbryngelson Jul 4, 2026
8192acf
fix(amr): restart sys_size guard (3-int header) + AMR restart golden …
sbryngelson Jul 4, 2026
e2d9dfe
feat(post): AMR-aware post_process - fine blocks as Silo/binary overl…
sbryngelson Jul 5, 2026
2e955f8
fix(amr): reconcile post-process reader to 3-int restart header + non…
sbryngelson Jul 5, 2026
ea56daa
merge: shippability batch - restart hardening + AMR-aware post_proces…
sbryngelson Jul 5, 2026
cf3733f
fix(sim): IB-AMR OMP-offload crash - explicit copyin(ib_markers%sf) o…
sbryngelson Jul 5, 2026
4d5df1e
merge: IB-AMR OpenMP-offload fix (copyin ib_markers - validated CPU/A…
sbryngelson Jul 5, 2026
09a4d5d
cleanup(gpu): drop the OMP attach/detach macro change - copyin(ib_mar…
sbryngelson Jul 5, 2026
2e8ffe6
merge: IB-OMP fix cleanup (copyin alone; drop shared omp_macros change)
sbryngelson Jul 5, 2026
59d6e86
fix(post): seed q_T for AMR fine-block chemistry cons->prim (was unin…
sbryngelson Jul 5, 2026
d0d20b2
fix(sim): clamp interior-only fd_coeff cell index in mibm IB-drag str…
sbryngelson Jul 5, 2026
654897d
feat(amr): support multi-body IB under AMR (lift num_ibs>1 gate); add…
sbryngelson Jul 5, 2026
7d8342d
feat(amr): support hypoelasticity under AMR - recompute spacing-depen…
sbryngelson Jul 5, 2026
cafdaab
test(amr): golden-protect the reachable-but-untested AMR combos - con…
sbryngelson Jul 5, 2026
bb38235
feat(amr): support acoustic sources with a static block - source acts…
sbryngelson Jul 5, 2026
d03ddb2
feat(amr): support acoustic sources under dynamic regrid - source sup…
sbryngelson Jul 5, 2026
ce534fb
feat(amr): support non-polytropic QBMM on a static block - per-block …
sbryngelson Jul 5, 2026
60fc4c7
feat(amr): support the 6-equation model (model_eqns=3) - per-stage pr…
sbryngelson Jul 5, 2026
c955673
fix: address PR review findings - allocate start_idx in all builds (s…
sbryngelson Jul 5, 2026
b8bad51
fix: harden AMR restart/overlay I/O and feature-combination edges fro…
sbryngelson Jul 5, 2026
5d96390
refactor(weno): deduplicate the hybrid-sensor nonlinear-weight blocks…
sbryngelson Jul 5, 2026
43e4b6c
fix: apply toolkit-review round-2 findings - Cray GPU attach for stor…
sbryngelson Jul 5, 2026
354f244
test(amr): close the review's top coverage gaps - first execution of …
sbryngelson Jul 5, 2026
8a0c23b
fix(ci): moving-IB ghost-point guard compares against the ACTIVE arra…
sbryngelson Jul 5, 2026
c08e8c9
test: honor explicit parallel_io in the golden template (the off-para…
sbryngelson Jul 5, 2026
d84254c
fix(post): exchange the chemistry q_T seam ghosts for EVERY chemistry…
sbryngelson Jul 5, 2026
03ea1f3
feat(amr): support 2D axisymmetric (cyl_coord, p=0) - per-block WENO …
sbryngelson Jul 5, 2026
155b57e
feat(amr): complete non-polytropic QBMM - subcycle time-lerps the pb/…
sbryngelson Jul 5, 2026
f3814e5
feat(amr): dynamic regrid with static immersed bodies - candidate box…
sbryngelson Jul 5, 2026
1e917c0
feat(amr): stretched-grid support - fine ghost-shell coordinates exte…
sbryngelson Jul 5, 2026
7042c54
Merge remote-tracking branch 'upstream/master' into up/mega
sbryngelson Jul 5, 2026
7717b05
feat(amr): support hybrid_weno/hybrid_riemann - remove the unvalidate…
sbryngelson Jul 5, 2026
c3eac4c
feat(amr): moving bodies (prescribed motion) with dynamic regrid - th…
sbryngelson Jul 6, 2026
6f518df
feat(amr): Lagrangian bubbles with the cloud excluded from fine block…
sbryngelson Jul 6, 2026
a38447c
feat(amr): IGR solver support with restriction-only coarse/fine coupl…
sbryngelson Jul 6, 2026
c7fbc1d
fix(amr): non-polytropic QBMM side-state on GPU - passing amr_slots(a…
sbryngelson Jul 6, 2026
cfe7935
fix(amr): nonpoly QBMM slot side-state uses the pres_field + ACC_SETU…
sbryngelson Jul 6, 2026
a0de508
fix(amr): nonpoly QBMM pbmv kernels take argument dummies; prolongati…
sbryngelson Jul 6, 2026
4794356
fix(test): the POST_PROCESS_OFF_PARAMS honor-exemption is per-test op…
sbryngelson Jul 6, 2026
9e0765a
fix(amr): apply review round-3 findings - (1) the Lagrangian-cloud re…
sbryngelson Jul 6, 2026
d3687dd
fix(amr): grid-uniformity tolerance is epsilon-scaled - the absolute …
sbryngelson Jul 6, 2026
5d9c459
fix(amr): fine slot rhs arrays widen collapsed dims to -1:+1 under IG…
sbryngelson Jul 6, 2026
f5eea61
fix(amr): IGR sigma swap/restore kernels hoist bounds to scalars - th…
sbryngelson Jul 6, 2026
a2ff192
fix(test): consequential-eps hybrid goldens and the AMR acoustic stat…
sbryngelson Jul 6, 2026
72b7807
docs(test): record the nvhpc 24.1/24.3 compat-lane NaN as a known non…
sbryngelson Jul 6, 2026
67e8ee6
fix(test): AMR+hybrid consequential goldens override_tol 1e-8 -> 1e-6…
sbryngelson Jul 6, 2026
b255923
fix(sim): device-map hybrid_* sensor flags so the Cray-GPU hybrid sen…
sbryngelson Jul 6, 2026
f55ccb9
fix(sim): seed active_box exterior primitives once so the full-domain…
sbryngelson Jul 6, 2026
198db81
fix(ibm): ghost_points device-mapping lifecycle uses the paired macro…
sbryngelson Jul 6, 2026
610c6a3
fix(test): consequential hybrid goldens override_tol -> 5e-5, sized b…
sbryngelson Jul 6, 2026
726d644
feat(amr): support active_box - blocks must sit strictly inside the a…
sbryngelson Jul 6, 2026
ac203b1
docs(amr): MHD stays gated ON MEASURED EVIDENCE - attempted support a…
sbryngelson Jul 6, 2026
b8bdb94
feat(amr): support 1D MHD/RMHD - div(B) = d(Bx)/dx and 1D evolves onl…
sbryngelson Jul 6, 2026
30aefdd
docs(amr): correct the stretched-grid + Lagrangian/IB gate rationale …
sbryngelson Jul 6, 2026
6c301d9
feat(amr): fine-level distribution map, phase 1 (computed, not applie…
sbryngelson Jul 6, 2026
ba8f964
docs(amr): fine-distribution note tracks up/mega (not a separate branch)
sbryngelson Jul 6, 2026
ea1a879
fix(sim): isolate fine-IB AMR state into m_ibm_fine to fix Cray plain…
sbryngelson Jul 7, 2026
33e9745
fix(sim): make AMR fine-IB swap device-stable (copy, not move_alloc/p…
sbryngelson Jul 7, 2026
443d550
fix(sim): sync moving-IB body position to host before the AMR subcycl…
sbryngelson Jul 7, 2026
165d9a9
amr: make moving-IB fine-block ghost ordering deterministic across ba…
sbryngelson Jul 8, 2026
16ea304
amr: fine-level SFC distribution - point-to-point coarse<->fine coupl…
sbryngelson Jul 8, 2026
59ecdc6
amr: block-splitting (max_grid_size tiling) + fine-fine halo + reflux…
sbryngelson Jul 8, 2026
2b97a35
amr: point-to-point cross-rank regrid fine-state migration (stretched…
sbryngelson Jul 8, 2026
bc3789d
test: regenerate B7704247 golden (2D stretched-y AMR regrid) for bloc…
sbryngelson Jul 7, 2026
b2aaa2c
docs: B7704247 resolved (tiling refines full tag vs old np=1 clamp - …
sbryngelson Jul 7, 2026
ddafc31
amr: gate non-polytropic QBMM at np>=2 (fail-closed) - The pb/mv quad…
sbryngelson Jul 7, 2026
764c01a
docs: QBMM+AMR np>=2 now gated fail-closed (was ungated/untested)
sbryngelson Jul 7, 2026
0a61574
amr: device-native fine->coarse restriction at np=1 (fixes GPU AMR re…
sbryngelson Jul 7, 2026
bd94035
amr: device-native restriction at np>=2 (fixes GPU whole-coarse clobb…
sbryngelson Jul 7, 2026
a4704f9
test: regenerate 660FFBFE golden (2D IGR igr_order=3 dynamic-regrid) …
sbryngelson Jul 7, 2026
f84b41f
amr: point-to-point cross-rank regrid migration (replaces all-ranks b…
sbryngelson Jul 8, 2026
c644d8b
amr: repartition-on-restart across rank counts (parallel_io) - s_read…
sbryngelson Jul 8, 2026
7d317e1
amr: factor per-slot field alloc/free into s_amr_alloc_slot/s_amr_fre…
sbryngelson Jul 8, 2026
66eb896
amr: lazy owned-only slot allocation - right-size fine memory to ~1/n…
sbryngelson Jul 8, 2026
ace2285
amr: warn when amr_max_blocks < num_procs (fine-level load balance ca…
sbryngelson Jul 8, 2026
45796fd
test/hybrid: place sensor eps in a phi gap (0.5 -> 0.3) to kill cross…
sbryngelson Jul 8, 2026
cf4deb1
amr: move_alloc amr_cg to avoid CCE-OMP uninitialized-descriptor crash
sbryngelson Jul 9, 2026
d8c2548
ibm: order ghost points deterministically for reproducible moving AMR-IB
sbryngelson Jul 9, 2026
7c27641
Merge remote-tracking branch 'upstream/master' into up/mega
sbryngelson Jul 9, 2026
9303ddb
amr/ib: update only ghost_points(1:num_gps) to fix amdflang IBM+AMR o…
sbryngelson Jul 9, 2026
4fafd7f
ibm: park AMR ghost points on-device to drop the swap host round-trip
sbryngelson Jul 9, 2026
4c877aa
test: soften moving-IB circle case to avoid the un-GCL'd CFL blow-up …
sbryngelson Jul 10, 2026
0f22386
amr: tear down ACC_SETUP scalar-field mappings on slot free (Cray pre…
sbryngelson Jul 10, 2026
5e51d3f
test: keep two-body moving-IB (43AF9F25) at its original wall speed
sbryngelson Jul 10, 2026
e19677b
Merge remote-tracking branch 'upstream/master' into up/mega
sbryngelson Jul 10, 2026
7ac0a88
weno: slice omega target to 0:weno_num_stencils in central-weight ass…
sbryngelson Jul 10, 2026
0456e6b
Merge upstream/master; extend hybrid_riemann smooth-flux to hll/lf/hlld
sbryngelson Jul 11, 2026
416e414
bubbles: fix Euler-Euler GPU data race on shared bubble-wall scratch
sbryngelson Jul 11, 2026
0aa5ae2
test: robust liveness eps for hll/hlld hybrid; drop fragile LF golden
sbryngelson Jul 11, 2026
28d93dc
test: remove orphaned Lax-Friedrichs hybrid golden (test dropped)
sbryngelson Jul 11, 2026
d266ab7
riemann: restore hypoelastic G floor under continuum damage
sbryngelson Jul 11, 2026
452cb39
riemann: make LF a first-class hybrid solver via consistent local-LF
sbryngelson Jul 11, 2026
6e3c3ed
Merge remote-tracking branch 'upstream/master' into up/mega
sbryngelson Jul 11, 2026
6279b2b
riemann: fix CCE case-optimization build of hybrid smooth-flux helper
sbryngelson Jul 11, 2026
f2ae15a
riemann: bake hybrid toggles into case-opt to dodge NVHPC fort2 crash
sbryngelson Jul 12, 2026
359687e
test: skip Lagrange two-way AMR goldens on nvfortran-in-docker
sbryngelson Jul 12, 2026
bd649f1
Merge remote-tracking branch 'upstream/master' into up/mega
sbryngelson Jul 12, 2026
9f939fa
amr: amr_max_level param + multi-level design roadmap (increment 1, g…
sbryngelson Jul 8, 2026
9dfe80d
amr: per-block level data model (multi-level increment 2a) - Add amr_…
sbryngelson Jul 8, 2026
5364d5f
amr: parent-block finder + coarse-frame design (multi-level 2b start)…
sbryngelson Jul 8, 2026
05d10c0
amr: level-aware L1->L2 coupling conserves exactly (multi-level 2b mi…
sbryngelson Jul 8, 2026
f79d8fb
docs(amr): increment 3 plan - lock-step advance first, then subcycle …
sbryngelson Jul 8, 2026
d857d21
amr: restrict-to-parent - fold level-2 fine back into the parent (inc…
sbryngelson Jul 8, 2026
0930008
amr: reflux-to-parent - Berger-Colella C/F flux correction into the p…
sbryngelson Jul 9, 2026
1d6fdb2
amr: persistent level-2 block (increment 3 step 3)
sbryngelson Jul 9, 2026
b3f3d39
amr: level-loop driver conserves on GPU - fix persistent-L2 device Na…
sbryngelson Jul 9, 2026
4fdebe0
amr: dynamic per-level regrid + L2->L1 reflux conserve to machine zer…
sbryngelson Jul 9, 2026
df99912
amr: enable viscous/chemistry multi-level - total-flux L2->L1 reflux …
sbryngelson Jul 9, 2026
4a0c947
amr: generalize multi-level nesting to >2 levels (np=1)
sbryngelson Jul 9, 2026
f72253a
test(amr): add np=1 amr_max_level=2 multi-level golden (static 2-leve…
sbryngelson Jul 9, 2026
cf8255d
amr: sensor-on-fine child tagging for multi-level regrid (np=1)
sbryngelson Jul 9, 2026
7c3f930
test(amr): add np=1 dynamic multi-level golden (sensor-on-fine child …
sbryngelson Jul 10, 2026
d6ccc93
amr(#26 inc.1): extract recursive s_amr_advance_subtree - behavior-pr…
sbryngelson Jul 10, 2026
12c61be
amr(#26 inc.2): recursive multi-level subcycling - each level at its …
sbryngelson Jul 10, 2026
90a4df7
amr(#26): fix pslot/amr_cur arg-aliasing breaking multi-level subcycl…
sbryngelson Jul 10, 2026
08c5b8f
amr(#27 inc.1): static multi-level runs at np>=2 (co-located refineme…
sbryngelson Jul 10, 2026
ee0864b
amr(#27 inc.2): dynamic multi-level at np>=2 (distributed nesting + c…
sbryngelson Jul 10, 2026
6642c77
amr(#27 inc.2): gate multi-level np>1 to validated 1D (2D/3D fine-blo…
sbryngelson Jul 10, 2026
4dea454
amr(#27 inc.3): 2D/3D multi-level at np>=2 (fix parent-gather arg + f…
sbryngelson Jul 10, 2026
963947e
amr(#28): document root cause of subcycle+dynamic+np>1 leak (missing …
sbryngelson Jul 11, 2026
887eb98
amr(#28): single-level subcycle conserves at np>1 (transpose subcycle…
sbryngelson Jul 11, 2026
b4a1f53
amr(#35): multi-level L2-L2 seam conserves in lock-step (level-aware …
sbryngelson Jul 11, 2026
1f035d7
amr: guard two review-found multi-level edge cases (tile-size div-by-…
sbryngelson Jul 11, 2026
86536cc
amr: two review perf cleanups in the fine-fine halo and reflux-to-parent
sbryngelson Jul 11, 2026
decbb1f
amr: strip development self-test scaffolding from static multi-level …
sbryngelson Jul 11, 2026
08409a5
amr: unify the L0/L1 and L2->L1 Berger-Colella reflux into one kernel
sbryngelson Jul 11, 2026
99ff235
amr: unify the coarse-self and child creg boundary-flux capture
sbryngelson Jul 12, 2026
3f73cfd
amr: address multi-level code review — static-builder guards, level-a…
sbryngelson Jul 13, 2026
e176e29
docs(amr): amr_max_level multi-level is implemented, not planned
sbryngelson Jul 13, 2026
89b6b3d
amr: skip the amr_cg device->host copy on the runtime C/F ghost-fill …
sbryngelson Jul 13, 2026
bc2a63c
amr: np=1 device-direct level-1 coarse gather (drop the per-stage hos…
sbryngelson Jul 13, 2026
6219787
ibm(amr): size fine IB marker field for the deepest level (multi-leve…
sbryngelson Jul 13, 2026
0a87a1b
amr(ib): cascade body-containment into multi-level nesting (refine bo…
sbryngelson Jul 13, 2026
b865753
ibm(amr): size the active ib_markers field for the deepest level (par…
sbryngelson Jul 13, 2026
e8e1f61
amr(ib): grow the regrid boxes array to amr_max_blocks before multi-l…
sbryngelson Jul 13, 2026
f94cc1d
amr(ib): admit np=1 static multi-level IB + golden (2D cylinder, amr_…
sbryngelson Jul 13, 2026
262f119
amr(ib): widen multi-level body containment so the fine C/F boundary …
sbryngelson Jul 13, 2026
e38d57d
docs(amr): design + plan for the three banked AMR increments (QBMM np…
sbryngelson Jul 13, 2026
517326c
Merge pull request #6 from sbryngelson/amr-multilevel
sbryngelson Jul 13, 2026
117b62b
Merge branch 'master' into up/mega
sbryngelson Jul 13, 2026
75b8e9c
docs(amr): implementation plan for distributed pb/mv QBMM np>=2 coupl…
sbryngelson Jul 13, 2026
993ccca
amr(qbmm): gather coarse pb/mv patch + distributed prolong (init/regr…
sbryngelson Jul 13, 2026
822ce21
amr(qbmm): distributed pb/mv ghost-fill on the runtime advance path (…
sbryngelson Jul 13, 2026
eccb9a3
amr(qbmm): distributed pb/mv restrict scatter (fine->coarse fold-back…
sbryngelson Jul 13, 2026
9f7b30c
amr(qbmm): admit single-level non-polytropic QBMM at np>=2 + np=2 str…
sbryngelson Jul 13, 2026
eb0ae2f
amr(qbmm): np=4 straddle golden for distributed pb/mv (np4==np1 machi…
sbryngelson Jul 13, 2026
da03270
docs(amr): implementation plan for runtime ref_ratio in {2,4}, single…
sbryngelson Jul 13, 2026
3951ca3
amr(ref_ratio): param + gate + mechanical de-hardcode of the 2:1 exte…
sbryngelson Jul 13, 2026
d44324e
amr(ref_ratio): thread ref_ratio into static-block fine-extent guards…
sbryngelson Jul 13, 2026
b101daf
amr(ref_ratio): generalize prolong child-offset stencil (rr=2 bit-ide…
sbryngelson Jul 13, 2026
239c5ba
amr(ref_ratio): generalize fine-grid coordinate subdivision to rr-way…
sbryngelson Jul 13, 2026
666a6f2
amr(ref_ratio): thread ref_ratio into coarse-RHS reflux child-averagi…
sbryngelson Jul 13, 2026
f80db66
amr(ref_ratio): complete de-hardcode - restrict x-child loop + restar…
sbryngelson Jul 13, 2026
d20cb2f
docs(amr): fix broken case.md link to amr_multilevel (add @page ancho…
sbryngelson Jul 14, 2026
b78968c
test(amr): make 05A8C23C a quiescent static structural test (cross-co…
sbryngelson Jul 14, 2026
54d6e50
test(amr): remove np=4 QBMM straddle golden 70F9736F (oversubscribes …
sbryngelson Jul 14, 2026
336e9d0
docs: AMR-on-AMD-flang root-cause note (root-level) - empty defaultma…
sbryngelson Jul 14, 2026
87ed1c6
fix(post): reconstruct multi-level (ref_ratio**level) AMR fine mesh i…
sbryngelson Jul 14, 2026
c8b1006
amr(flang): device-pack the fine-fine seam halo (fix 2D+ np>=2 on AMD…
sbryngelson Jul 14, 2026
22a4960
amr: warn on lock-step refinement dt/CFL (fine block runs at coarse d…
sbryngelson Jul 14, 2026
15d68b0
amr(flang): defaultmap(present:allocatable) on AMR-fine IB swap/resto…
sbryngelson Jul 14, 2026
9ea6193
amr(gpu): fix seam-halo device kernel PRESENT error on nvfortran/Cray…
sbryngelson Jul 14, 2026
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
3 changes: 3 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ TKE = "TKE"
HSA = "HSA"
infp = "infp"
Sur = "Sur"
thi = "thi" # AMR clustering local: tagged-box hi index (tlo/thi)
alo = "alo" # AMR clustering local: accepted-box lo array (alo/ahi)
thr = "thr" # AMR clustering local: min-separation merge threshold
chioces = "chioces" # typo for "choices" - tests constraint key validation
reqires = "reqires" # typo for "requires" - tests dependency key validation
choises = "choises" # appears in comment explaining validation purpose
Expand Down
101 changes: 101 additions & 0 deletions AMR_AMD_FLANG_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# AMR on AMD flang (OpenMP target offload) — root cause and fix

**Status: RESOLVED** (2026-07-14, verified on AMD MI250X / gfx90a, ROCm flang, OpenMP offload).
The block-structured AMR GPU path now runs correctly on the AMD flang OpenMP-target-offload
backend, alongside the pre-existing NVHPC (OpenACC / OpenMP) and Cray CCE (OpenMP) support.

This note supersedes the original hypothesis (which pinned the failure on the empty AMD
`defaultmap` in `omp_macros.fpp`). Live reproduction on an MI250X **refuted** that: see below.

## Symptom (AMD `gpu-omp`, np ≥ 2, 2D+)
Four AMR tests failed only on the AMD offload lane, passing on every other backend:
- **Self-abort** — `244B1E42` (2D single-level subcycle np=2), `ADA042A2` (2D multi-level static
np=2): NaN appears at a seam-region cell after a few steps and the NaN guard calls `MPI_Abort`.
- **Tolerance drift** — 2D dynamic-regrid cases (`660FFBFE` IGR, `B7704247` stretched grid): the
field diverges beyond golden tolerance.

## Root cause (confirmed by isolation)
The empty AMD `defaultmap` and the Cray-only `ACC_SETUP_SFs`/`ACC_TEARDOWN_SFs` are **not** the
cause. Isolation on the MI250X shows the failure is **2D-and-higher, np ≥ 2 only**:
- `21C71558` (1D static np=1) — passes.
- `5EFB3277` (1D dynamic regrid np=2) — passes.
- `244B1E42` (2D subcycle np=2) — NaN → abort.

A backend-wide defaultmap/descriptor problem would break 1D and np=1 too; those pass. The one
code path that is 2D-and-higher-np≥2-specific is the **fine-fine seam halo**
`s_amr_fine_slice` (`src/simulation/m_amr.fpp`). It packed/unpacked on the host and moved the
near-seam slab with a `target update` map clause of a **strided array section of a doubly-nested
derived-type member**:

```
$:GPU_UPDATE(host='[amr_slots(slot)%q_cons(i)%sf(dlo:dhi, 0:fm(2), 0:fm(3))]')
```

flang miscomputes the offset/stride of that strided section (seam dim `d < num_dims`) in the map
clause. In 1D the section is contiguous, so flang gets it right — which is exactly why 1D np≥2
passes and 2D+ np≥2 does not. `LIBOMPTARGET_INFO=-1` on a failing run showed **no** mapping error
(no present-table miss): the update silently moves the wrong bytes, corrupting the seam ghosts → NaN.

The base-grid MPI halo (`s_mpi_sendrecv_variables_buffers`) never hits this: it **device-packs**
into a contiguous buffer and only ever transfers the contiguous buffer.

## Fix
Rewrite `s_amr_fine_slice` to mirror the base-grid halo — pack/unpack on the **device** straight
into the contiguous buffer, and move only that contiguous buffer host↔device (per-kernel
`copyin`/`copyout`, no strided map-clause section). Two consequences that the live run surfaced and
that the fix accounts for:
1. **`buf` must be mapped.** It is not `declare target`, and AMD's `default='present'` expands to an
empty defaultmap, so the pack/unpack kernels map it explicitly (`copyout` on pack, `copyin` on
unpack). Without this the kernel faults on a null `buf` device pointer.
2. **`amr_slots` is not `GPU_DECLARE`d.** Indexing the module array `amr_slots(slot)%q_cons(i)%sf`
*inside a kernel* dereferences a null outer descriptor. The slot's `q_cons` is passed in as a
`scalar_field` array argument and the kernel indexes the dummy — the same pattern every other AMR
kernel already uses (e.g. `s_amr_fill_fine_ghosts`).

The change is numerically identical (same pack/unpack ordering and casts), so goldens are unchanged
on all backends; only the transfer mechanism differs.

## Verification (AMD MI250X, OpenMP offload, np=2)
All four previously-failing cases pass, no regression on the passing cases:
`244B1E42`, `ADA042A2`, `660FFBFE`, `B7704247` (fixed); `21C71558`, `5EFB3277` (still pass).

## Second, separate bug: AMR+IB fine-marker swap/restore hangs the offload runtime

Found while sweeping the suite. **Symptom:** AMR+IB tests hang (99% host CPU, GPU idle, no timestep
output) inside `s_ibm_swap_to_fine` / `s_ibm_restore_from_fine` (`m_ibm.fpp`), the AMR-fine IB
ghost-point park/pull kernels. `rocgdb` on the live hang shows the AMD offload runtime busy-looping in
a recursive `targetDataBegin → targetDataMapper → targetDataBegin` (cycling through `free`,
`SourceInfo::getSubstring`, `std::string::find`).

**Root cause:** those kernels access the device-resident `allocatable` derived-type arrays
`ghost_points` / `gp_park` with only `default='present'` — which on AMD emits **no** defaultmap, so
flang generates a map *entry* for them and lowers it to a per-element custom mapper (the same amdflang
failure the code already dodged for the whole-array `ghost_points` `GPU_UPDATE`). The runtime then
busy-loops processing that entry. Both an implicit `tofrom` map and an explicit `map(present,alloc:…)`
still create the entry and still hang; only **no entry at all** avoids it.

**Fix:** add an AMD-only `defaultmap(present:allocatable)` (via `extraOmpArgs`, gated on
`MFC_COMPILER == "LLVMFlang"`) to the four swap/restore kernels — asserts them present with no map
entry, so no mapper is generated. CCE already gets this via its `default='present'`; NVHPC/CPU
unchanged. `05A8C23C` is the only *multi-level* AMR+IB test (largest `gp_park`), which is why it
surfaced first; the fix is on the shared kernels so it covers all AMR+IB cases.

**Not minimally reproducible:** a standalone kernel implicitly mapping the same flat derived-type array
completes instantly even at MFC's element count and present-table size — the per-element-mapper path
only triggers in MFC's full offload context. Worth a flang/ROCm report with the `rocgdb` backtraces.

**Verification:** all AMR+IB tests pass on the MI250X: `05A8C23C` (multi-level, was hanging),
`2854A102`, `F980C769`, `7FC2F9F8`, `13945217`, `43AF9F25`.

## Reproduce / debug env
```
source ./mfc.sh load -c amdfund -m g # must be chained (&&) with the command below in ONE shell
export OMP_TARGET_OFFLOAD=MANDATORY # abort if offload cannot reach a GPU
export OFFLOAD_TRACK_NUM_KERNEL_LAUNCH_TRACES=8 # name the faulting kernel on a GPU memory fault
export LIBOMPTARGET_INFO=-1 # full host<->device mapping trace (very verbose)
./mfc.sh test --only 244B1E42 -- -b mpirun -n 2
```
For a *hang* (no error text), attach to the spinning rank to see where the runtime is stuck:
```
rocgdb -p $(pgrep -n simulation) -batch -ex 'bt 12'
```
Loading
Loading