-
Notifications
You must be signed in to change notification settings - Fork 117
[test] Adapt perftools to use build systems #439
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
[test] Adapt perftools to use build systems #439
Conversation
* Adapt the perftools test to use build systems. * Use new regression test syntax.
| self.valid_prog_environs = ['PrgEnv-cray', 'PrgEnv-gnu'] | ||
|
|
||
| # NOTE: Reduce time limit because for PrgEnv-pgi even if the output | ||
| # is correct, the batch job uses all the time. |
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.
Should we open a ticket to ops for that?
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.
@jgphpc also suggested earlier today to open a ticket. (yet, I could imagine he meant the tools-rt and not immediately ops)
kraushm
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
| def setup(self, environ, partition, **job_opts): | ||
| super().setup(environ, partition, **job_opts) | ||
| flags = self.prgenv_flags[self.current_environ.name] | ||
| flags += ['-g', '-D_CSCS_ITMAX=1', '-DUSE_MPI'] |
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 would use the build_system.cppflags for the -D definitions and as for the -g, I would put it in each entry in the prgenv_flags dictionary. This way, you will have all the compilation flags in a single place in the __init__().
Codecov Report
@@ Coverage Diff @@
## master #439 +/- ##
======================================
Coverage 91.2% 91.2%
======================================
Files 70 70
Lines 8611 8611
======================================
Hits 7854 7854
Misses 757 757Continue to review full report at Codecov.
|
Adapt the perftools test to use build systems.
Use new regression test syntax.
Solves the test failure due to the following error:
attempt to set an aggregate field of different type. Required typespec: list[str]This is the last regression test that addresses issue #397.
Closes #397