Skip to content

Fix some of memory leaked by NVHPC v24.9+#43

Merged
gdicker1 merged 5 commits intoEarthWorksOrg:ew-developfrom
gdicker1:fix/nvhpc_mem_leak_01
Jun 25, 2025
Merged

Fix some of memory leaked by NVHPC v24.9+#43
gdicker1 merged 5 commits intoEarthWorksOrg:ew-developfrom
gdicker1:fix/nvhpc_mem_leak_01

Conversation

@gdicker1
Copy link
Copy Markdown

Reduce the memory lost during runs with the nvhpc/24.9 or nvhpc/24.11 stacks on Derecho. This includes making array assignment explicit (tmp1(:,:) = tmp2(:,:) instead of tmp1 = tmp2) and freeing memory at the end of radiation_tend from rrtmgp.

Changes found by @johnmauff

G. Dylan Dickerson added 4 commits June 18, 2025 12:29
This will enable some fixes to memory leaked by NVHPC v24.9 and newer.
Changes to array assignment in coords_1d.F90 that ensures an
intermediate allocate isn't used for lines like 'coords%ifc = ifc' (both
are real(r8) arrays).
Credit to John Dennis (dennis@ucar.edu,johnmauff) for this fix for a
memory leak with NVHPC v24.9 and newer.
@gdicker1 gdicker1 requested a review from johnmauff June 18, 2025 18:42
@gdicker1 gdicker1 self-assigned this Jun 18, 2025
@gdicker1 gdicker1 added bug Something isn't working enhancement New feature or request external Has to do with externals labels Jun 18, 2025
@gdicker1
Copy link
Copy Markdown
Author

@gdicker1
Copy link
Copy Markdown
Author

@johnmauff, no review is really required. This is more to notify or let you review if you'd like.

@gdicker1 gdicker1 merged commit fbee207 into EarthWorksOrg:ew-develop Jun 25, 2025
0 of 2 checks passed
@gdicker1 gdicker1 deleted the fix/nvhpc_mem_leak_01 branch July 31, 2025 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request external Has to do with externals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant