Reduce CAM initialization memory footprint that is important for ne1024 simulation- #4102 - #1643
Open
sjsprecious wants to merge 2 commits into
Open
Reduce CAM initialization memory footprint that is important for ne1024 simulation- #4102#1643sjsprecious wants to merge 2 commits into
sjsprecious wants to merge 2 commits into
Conversation
sjsprecious
commented
Aug 11, 2026
Collaborator
Author
There was a problem hiding this comment.
@cacraigucar @jtruesdal this file is generic and not specific to CAM. My suggestion is to merge this PR with it for now (after addressing all the review comments). After that I will merge this code with a similar one in CTSM (ESCOMP/CTSM#4102), and bring it into CESM_share instead. Once we have a new CESM_share tag and bring it into CAM, we can then safely remove this code later.
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.
This PR reduces the memory usage during CAM initialization by adding a new module named
cam_shmem_mod.F90, which allocates the read-only looku tables once per shared-memory node and maps it into every rank on that node.Then the following modules are updated to reduce duplicated fields/tables:
A few additional updates:
This PR is done by Claude code under my supervisory.
Fixes #1640