-
Notifications
You must be signed in to change notification settings - Fork 117
[test] Add new Amber NVE library test and refactor the CSCS Amber check #2172
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
Conversation
|
Can I test this patch? |
|
Ok to test |
|
Hello @hurricane642, Thank you for updating! Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide Comment last updated at 2021-10-05 21:45:31 UTC |
|
@jenkins-cscs retry all |
vkarak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also believe that the CSCS version of the test can be simplified significantly. I will work a bit on that.
vkarak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a proposal for both the library file and the test. I will push tomorrow or do a PR to your branch.
Ok, cool, I'll wait :)) |
Codecov Report
@@ Coverage Diff @@
## master #2172 +/- ##
=======================================
Coverage 85.54% 85.54%
=======================================
Files 55 55
Lines 9746 9746
=======================================
Hits 8337 8337
Misses 1409 1409 Continue to review full report at Codecov.
|
|
@hurricane642 I've force pushed to your branch, since I made some substantial changes especially in the CSCS version of the test. I think that both the library and the CSCS version of the test -which is a bit weird to say the least- are much better now. @victorusu @jjotero comments? |
|
ok to test |
|
The simplest tests I could write and pass were the following: @rfm.simple_test
class my_amber_check(Amber_NVE):
modules = ['Amber']
valid_prog_environs = ['builtin']
@run_after('init')
def scope_systems(self):
if self.platform == 'gpu':
self.valid_systems = ['daint:gpu']
else:
self.valid_systems = ['daint:mc']
self.num_tasks = 2or these two: @rfm.simple_test
class my_amber_check(Amber_NVE):
modules = ['Amber']
valid_systems = ['daint:mc']
valid_prog_environs = ['builtin']
num_tasks = 2
platform = parameter(['cpu'])
@rfm.simple_test
class my_amber_check(Amber_NVE):
modules = ['Amber']
valid_systems = ['daint:gpu']
valid_prog_environs = ['builtin']
platform = parameter(['gpu'])Actually, the I also noticed that |
|
Actually, the simplest functional test is this! import reframe as rfm
from hpctestlib.apps.amber.nve import amber_nve_check
@rfm.simple_test
class my_amber_check(amber_nve_check):
valid_prog_environs = ['*']
valid_systems = ['*']Which you can scope and run from the command line: or |
|
@jenkins-cscs retry daint |
This is a continuation of #2084, devoted exclusively to the Amber test. A new file
nve.pyhas been added, introducing the main class for the Amber test, as well as the CSCS tests inherited from it.