-
Notifications
You must be signed in to change notification settings - Fork 117
[test] Adapt ddt regression test to PE 18.07 #425
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 ddt regression test to PE 18.07 #425
Conversation
* Adapt to build systems. * Adapt to new syntax. * Remove unused Makefiles * Add build dependencies in the F90 Makefile in order to make the Fortran modules available.
* Revert removal of `Makefile`. * Remove `Makefile_ddt` from `src` and all programming languages. * Restrict `max_concurrency` in case of Fortran.
Codecov Report
@@ Coverage Diff @@
## master #425 +/- ##
=========================================
- Coverage 91.21% 91.2% -0.02%
=========================================
Files 70 70
Lines 8585 8585
=========================================
- Hits 7831 7830 -1
- Misses 754 755 +1
Continue to review full report at Codecov.
|
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
| self.extension = extension | ||
| self.makefile = 'Makefile' | ||
| self.build_system = 'Make' | ||
| self.build_system.makefile = 'Makefile' |
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.
Makefile is the default. Why do you set it?
| # 'PrgEnv-pgi': ' -O2 -mp' | ||
| } | ||
| self.flags = ' -g' | ||
| self.flags = ['-g'] |
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.
Why don't you put directly the -g flag inside the self.prgenv_flags. I think the code would be more readable.
| self.ddt_options = [] | ||
| self.keep_files = ['ddtreport.txt'] | ||
|
|
||
| def _set_compiler_flags(self): |
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.
Is there a reason for this function?
| ] | ||
|
|
||
| self.flags += ['-DUSE_MPI'] | ||
| self.flags += ['-D_CSCS_ITMAX=5'] |
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.
If you set self.build_systems.cppflags, the trick with the flags attribute won't be needed.
|
|
||
| if self.current_system.name == 'kesch': | ||
| arch = 'sm_37' | ||
| self.flags += ['-lm', '-lcudart'] |
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.
Similarly here, you should set the ldflags of the build system.
|
|
||
| self.flags += ['-DUSE_MPI'] | ||
| self.flags += ['-D_CSCS_ITMAX=5'] | ||
| self.build_system.cflags = ['-DUSE_MPI', '-D_CSCS_ITMAX=5'] |
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.
These are cppflags (i.e., preprocessor flags). Here, you will only set the CFLAGS in the Makefile invocation.
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.
But the Makefile has to use them during compilation right?
|
@teojgo There seems to be a bug in the test for Kesch. |
Adapt to build systems.
Adapt to new syntax.
Remove unused Makefiles
Add build dependencies in the F90 Makefile in order to
make the Fortran modules available.
Closes #368
Addresses #397