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

Fix MPI issue with vmec crashes in 1st evaluation #446

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

landreman
Copy link
Contributor

When vmec fails to converge on the first function evaluation of an optimization, MPI proc 0 exits with an uncaught exception while other procs do not, causing the code to hang due to the MPI communication getting out of sync. This can result is wasted time on the cluster, as jobs don't exit cleanly and keep occupying nodes even though they are not actually working on an optimization. This PR fixes this issue, and the new test here provides coverage for this issue.

Copy link

codecov bot commented Sep 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.61%. Comparing base (32e5e52) to head (5b5c140).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #446      +/-   ##
==========================================
+ Coverage   92.52%   92.61%   +0.09%     
==========================================
  Files          75       75              
  Lines       13830    13837       +7     
==========================================
+ Hits        12796    12815      +19     
+ Misses       1034     1022      -12     
Flag Coverage Δ
unittests 92.61% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@rogeriojorge rogeriojorge left a comment

Choose a reason for hiding this comment

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

Looks ok to me

@landreman landreman merged commit 988e15c into master Sep 17, 2024
47 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