Conversation
* parallel snstop * formatting fixes * added comments * added test - does it make sense? * fixed MPI check * actually fixing MPI check * iSort fix * maybe this time the test will be skipped? * maybe like this? * what about this * cleanup * add timeout option to testflo * rerun tests * updated test with send/receive --------- Co-authored-by: Marco Mangano <mmangano@umich.edu>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #420 +/- ##
==========================================
+ Coverage 86.72% 86.91% +0.19%
==========================================
Files 24 24
Lines 3435 3455 +20
==========================================
+ Hits 2979 3003 +24
+ Misses 456 452 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@ewu63 bumping this up |
marcomangano
left a comment
There was a problem hiding this comment.
It looks like it is finally working. Is 120s a reasonable timeout timeout for tests?
|
My main concern with this PR is that I think the behaviour of whether to call snSTOP on only the root proc or all procs should be a user configurable option, and I would prefer the default being the prior behaviour (i.e. only on the root proc). |
|
I see your point @ewu63 . Would that be as simple as adding an additional bool option (say The rest of the edits in the |
|
Yeah, something like that. The rest of the changes look OK. |
|
I thought about this PR some more and I have some more reservations
|
|
I see. About the second point though, that would only involve the testing script. The rest of the changes are just ineffective if the code is not run in parallel. |
|
Yes, I misread that part of the code I think that's all OK. I can try to address some of this soon but I would prefer holding off on this PR for a bit longer. Trying to be diligent to not break people's stuff downstream. |
Agreed, there is no rush. I can add that flag we mentioned soon, so that the default behavior is unchanged. Down to brainstorm additional tests. |
Purpose
The purpose of this PR is to parallelize the SNSTOP user callback function.
See #417 for commit history.
A
--timeoutoption has been added to thetestfloarguments to avoid tests to hang.Expected time until merged
1 month
Type of change
Testing
Tests were added to ensure other processors are calling the snstop function.
Checklist
flake8andblackto make sure the Python code adheres to PEP-8 and is consistently formattedfprettifyor C/C++ code withclang-formatas applicable