Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid calling METIS for cell partitioning with one task #129

Merged

Conversation

mwarusz
Copy link
Member

@mwarusz mwarusz commented Sep 17, 2024

For debugging and performance testing it is sometimes useful to be able to run with just one MPI task. Right now attempting to do that on some machines (e.g. Frontier) results in a floating point exception inside METIS PartGraphKway. This seems to be a known issue: KarypisLab/METIS#67.

This PR makes cell partitioning with a single task a special-case and simply directly assigns every cell to the one task.

Checklist

  • CTest unit tests for new features have been added per the approved design.
  • Unit tests have passed. Please provide a relevant CDash build entry for verification.

@philipwjones philipwjones self-assigned this Sep 19, 2024
Copy link

@philipwjones philipwjones left a comment

Choose a reason for hiding this comment

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

This looks fine, thanks @mwarusz . Approving based on code inspection and unit tests passing.

@philipwjones philipwjones merged commit 4877165 into E3SM-Project:develop Sep 19, 2024
2 checks passed
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