Skip to content

Update XIOS depth calc for Genoa#612

Draft
Oakley Brunt (oakleybrunt) wants to merge 3 commits into
MetOffice:mainfrom
oakleybrunt:XIOS-depth
Draft

Update XIOS depth calc for Genoa#612
Oakley Brunt (oakleybrunt) wants to merge 3 commits into
MetOffice:mainfrom
oakleybrunt:XIOS-depth

Conversation

@oakleybrunt

@oakleybrunt Oakley Brunt (oakleybrunt) commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

PR Summary

Sci/Tech Reviewer: Hacka Fett (@christophermaynard)
Code Reviewer:

This ticket addresses issue #601 - XIOS server distribution is not currently optimised for Genoa nodes. Changes here are limited to the launch-exe script, specifically updating the calculation of XIOS_DEPTH to use CORES_PER_NODE instead of hard-coded values for Milan architecture.

The implementation uses calculations for most depth settings, up to CORES_PER_NODE / 16. This would result in 12-cpu gaps between MPI ranks on Genoa hardware and 8-cpu gaps on Milan. Beyond this, depths are hard-coded to reduce from 8 by a factor of 2 (8, 4, 2). The reason for this is illustrated here:

Genoa-cores

A depth of 8 is more optimal for Genoa nodes than a depth of CORES_PER_NODE / 32, which was the next step in the original sequence. This would give a depth of 6 which would not fit as neatly into cache boundaries as a depth of 8.

As shown in the Genoa hardware diagram in the EX User Guide, a NUMA region is shared by 24 cpus and L3 cache is shared by 8 cpus in a block. This means that a depth of 12 is slightly less optimal than a depth of 8 since memory operations will have to pass via the NUMA region. However, this is a trade-off for more complete utilisation of IO server nodes.

Code Quality Checklist

  • I have performed a self-review of my own code
  • My code follows the project's style guidelines
  • Comments have been included that aid understanding and enhance the readability of the code
  • My changes generate no new warnings
  • All automated checks in the CI pipeline have completed successfully

Testing

  • I have tested this change locally, using the LFRic Apps rose-stem suite
  • If any tests fail (rose-stem or CI) the reason is understood and acceptable (e.g. kgo changes)
  • I have added tests to cover new functionality as appropriate (e.g. system tests, unit tests, etc.)
  • Any new tests have been assigned an appropriate amount of compute resource and have been allocated to an appropriate testing group (i.e. the developer tests are for jobs which use a small amount of compute resource and complete in a matter of minutes)

trac.log

Security Considerations

  • I have reviewed my changes for potential security issues
  • Sensitive data is properly handled (if applicable)
  • Authentication and authorisation are properly implemented (if applicable)

Performance Impact

  • Performance of the code has been considered and, if applicable, suitable performance measurements have been conducted

AI Assistance and Attribution

  • Some of the content of this change has been produced with the assistance of Generative AI tool name (e.g., Met Office Github Copilot Enterprise, Github Copilot Personal, ChatGPT GPT-4, etc) and I have followed the Simulation Systems AI policy (including attribution labels)

Documentation

  • Where appropriate I have updated documentation related to this change and confirmed that it builds correctly

PSyclone Approval

  • If you have edited any PSyclone-related code (e.g. PSyKAl-lite, Kernel interface, optimisation scripts, LFRic data structure code) then please contact the TCD Team

Sci/Tech Review

  • I understand this area of code and the changes being added
  • The proposed changes correspond to the pull request description
  • Documentation is sufficient (do documentation papers need updating)
  • Sufficient testing has been completed

(Please alert the code reviewer via a tag when you have approved the SR)

Code Review

  • All dependencies have been resolved
  • Related Issues have been properly linked and addressed
  • CLA compliance has been confirmed
  • Code quality standards have been met
  • Tests are adequate and have passed
  • Documentation is complete and accurate
  • Security considerations have been addressed
  • Performance impact is acceptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants