-
Notifications
You must be signed in to change notification settings - Fork 117
[test] Enable IOR test on Daint #937
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
|
Hello @GiuseppeLoRe, 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 2019-09-16 14:49:27 UTC |
|
Can I test this patch? |
|
ok to test |
teojgo
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.
You can remove the super().__init__() call in line 10. It is not needed anymore. Furthermore, remove snx1600 from the parameterized tests since you removed it from the filesystems you check.
Codecov Report
@@ Coverage Diff @@
## master #937 +/- ##
======================================
Coverage 91.7% 91.7%
======================================
Files 79 79
Lines 10486 10486
======================================
Hits 9616 9616
Misses 870 870Continue to review full report at Codecov.
|
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.
lgtm
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.
Have you tried that on Daint? For me, some tests fail. Also I think that the numbers reported by one of the read tests are skewed due to caching.
|
Without the line AttributeError: IorWriteCheck object has no attribute '_current_partition' |
|
@GiuseppeLoRe You can remove the |
|
@teojgo Perhaps @GiuseppeLoRe uses an older version of reframe. This feature was introduced in |
|
I am using the daint default one, 2.17.1 |
|
Should I test with 2.18 or 2.19? |
|
So then keep the call to |
|
ok |
|
Now that I do the tests twice, one for the gpu partition and then again for the mc one, I get the caching effect on the second test. |
|
@GiuseppeLoRe Yes, you can. This information is available in the |
|
@vkarak thanks for the link, but at least for me the example is not very clear. |
|
@GiuseppeLoRe What do you want to do based on the current programming environment? |
|
@vkarak I would like the partition mane (mc or gpu) to build the ior output file name. And thought that I could use something like https://reframe-hpc.readthedocs.io/en/stable/reference.html#reframe.core.pipeline.RegressionTest.current_partition.... |
|
Yes, you can do that, but def setup(self, partition, environ, **job_opts):
super().setup(partition, environ, **job_opts)
if self.current_partition.name == 'gpu':
self.executable_opts = [...]
else:
self.executable_opts = [...]You may also write this as follows: def setup(self, partition, environ, **job_opts):
if partition.name == 'gpu':
self.executable_opts = [...]
else:
self.executable_opts = [...]
super().setup(partition, environ, **job_opts)And from version 2.20 (or even from the current master), you will be able to write this as follows: @rfm.run_after('setup')
def choose_your_function_name(self):
if self.current_partition.name == 'gpu':
self.executable_opts = [...]
else:
self.executable_opts = [...] |
…e gpu partition are different from the files in the mc one. This to avoid caching effects in the read tests.
…into ior_sep2019
|
Tested on Daint. |
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.
Overall lgtm now. My only question is whether it would make sense to run the test for /users from the login nodes rather than the compute nodes, so as to avoid the wait times.
|
@GiuseppeLoRe The test is MPI-based, so ignore my comment. I am merging this. |
No description provided.