-
Notifications
You must be signed in to change notification settings - Fork 55
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
Gromacs 2018 and pytest low-performance custom plugin to control -nt #102
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #102 +/- ##
========================================
Coverage 48.54% 48.54%
========================================
Files 24 24
Lines 4837 4837
Branches 733 733
========================================
Hits 2348 2348
+ Misses 2331 2330 -1
- Partials 158 159 +1
Continue to review full report at Codecov.
|
Similar problem with maxthreads as in Becksteinlab/MDPOW#77 ? |
Can you enable full output so that we can see if this is again a problem with the number of threads? We probably need to explicitly restrict number of threads to 2 again... |
718c7e1
to
9343a3f
Compare
@ianmkenney can you have a look again, please? I would like this to work. |
What is pytest-gmx and where is it used? |
I'm attempting to build a plugin for pytest that will make our tests a little more manageable. Setting the number of threads from the command line rather than hard coded into the tests themselves would be much more convenient since when we run local tests we would rather use a larger number of threads.
For now I just added a low performance flag to pytest that, if provided, will set nt=2. Just an playing around with the idea, as it could still be useful in future projects. You can find it in my repos.
… On May 12, 2017, at 12:42 AM, Oliver Beckstein ***@***.***> wrote:
What is pytest-gmx and where is it used?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@ianmkenney can you move the repo to Becksteinlab so that all the GW-related things are together? |
bb4ccb6
to
753e3f9
Compare
Rebased against develop but there are problems in the tests
|
01e4bff
to
1ebb7d7
Compare
rebased against develop (the errors in |
Btw, locally, the tests pass just fine with 2016.5. |
Good and bad news:
|
010ee7c
to
2a7651d
Compare
2a7651d
to
b9c8d1b
Compare
I rebased against develop (with #127 merged) and force pushed. |
The new low_performance fixture (from https://github.com/ianmkenney/pytest-gmx was not applied in derived classes. Fixed by removing superfluous methods that just called the superclass method. Also added a comment to the test that includes the low_performance fixture.
b9c8d1b
to
343e5b0
Compare
48586b9
to
72f1ac5
Compare
This looks good, and the run time of the mdrun tests decreased from ~20s to ~4s by setting -nt 2. Will merge. |
2f4b440
to
41724a1
Compare
41724a1
to
905f091
Compare
- Gromacs 2018 insists on -r for grompp, earlier uses the structure as default - required to make more Gromacs 2018 tests pass
- makes 2018 tests pass - small code cleanup in tests/top/top.py
121db79
to
f9e0dde
Compare
needed so that it can be used with all fixtures
- test does not always hit the convergence criterion and then errors; this seems stochastic (eg depends on architecture); rerun the test with a much higher tolerance once this happens and hope for the best - use the low_performance fixture to set nt=2 for test_setup.py
Include Gromacs 2016 in tests (fixes #96)EDIT: We use Gromacs 2018 (see PR #127 and discussion in #130 ). This PR contains experimental pytest plugin to provide the
pytest --low-performance
flag and code to explicitly set the number of threads forgmx mdrun
in the tests.