Skip to content

Added a script to compute memory usage of tracer advection - #105

Merged
arporter merged 2 commits into
masterfrom
paper_memory_usage_script
Aug 5, 2026
Merged

Added a script to compute memory usage of tracer advection#105
arporter merged 2 commits into
masterfrom
paper_memory_usage_script

Conversation

@LonelyCat124

@LonelyCat124 LonelyCat124 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

As required for the paper, it uses the environment variables (as the benchmark does) for setting the problem size, it has some other enviornment variable options as well.

Matches Sergi's results from the sheet exactly, so should be correct.

Ready from a look from @sergisiso or @arporter

Edit:
There could be a reduction in code reuse (as some functions are identical), but for now I wanted to just be explicit (and allows for changes in the future). If you would prefer avoiding dupluication I could do that.

@arporter arporter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Aidan. Looks good to me. Just needs a little bit of clarification on "memory usage" but otherwise fine.

Comment thread benchmarks/nemo/tracer_advection/scripts/memory_usage_estimate.py Outdated
Comment thread benchmarks/nemo/tracer_advection/scripts/memory_usage_estimate.py Outdated
Comment thread benchmarks/nemo/tracer_advection/scripts/memory_usage_estimate.py Outdated
@LonelyCat124

Copy link
Copy Markdown
Collaborator Author

@arporter Fixed those up, back to you.

@arporter arporter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good now. I realise we don't have a test for the script but that's a bigger piece of work so I suggest we leave that.

@arporter
arporter merged commit cdd1523 into master Aug 5, 2026
1 check passed
@arporter
arporter deleted the paper_memory_usage_script branch August 5, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants