forked from easybuilders/easybuild-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from boegel/cug20
sync with develop
- Loading branch information
Showing
52 changed files
with
2,735 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# .coveragerc to control coverage.py | ||
[run] | ||
branch = True | ||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: | ||
|
||
ignore_errors = True | ||
|
||
[html] | ||
directory = coverage_html_report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
.pydevproject | ||
.project | ||
LICENSE_HEADER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Example implementations of EasyBuild hooks | ||
================================= | ||
|
||
.. image:: https://easybuilders.github.io/easybuild/images/easybuild_logo_small.png | ||
:align: center | ||
|
||
EasyBuild website: https://easybuilders.github.io/easybuild/ | ||
docs: https://easybuild.readthedocs.io | ||
|
||
This directory contain examples of implementations of EasyBuild hooks | ||
used at various sites, along with a couple of small examples with | ||
explanations. | ||
|
||
See https://easybuild.readthedocs.io/en/latest/Hooks.html for | ||
documentation on hooks in EasyBuild. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Small example of how to add/delete a configure option. | ||
# | ||
# Author: Åke Sandgren, HPC2N | ||
|
||
# We need to be able to distinguish between versions of OpenMPI | ||
from distutils.version import LooseVersion | ||
|
||
|
||
def pre_configure_hook(self, *args, **kwargs): | ||
# Check that we're dealing with the correct easyconfig file | ||
if self.name == 'OpenMPI': | ||
extra_opts = "" | ||
# Enable using pmi from slurm | ||
extra_opts += "--with-pmi=/lap/slurm " | ||
|
||
# And enable munge for OpenMPI versions that knows about it | ||
if LooseVersion(self.version) >= LooseVersion('2'): | ||
extra_opts += "--with-munge " | ||
|
||
# Now add the options | ||
self.log.info("[pre-configure hook] Adding %s" % extra_opts) | ||
self.cfg.update('configopts', extra_opts) | ||
|
||
# Now we delete some options | ||
# For newer versions of OpenMPI we can re-enable ucx, i.e. delete the --without-ucx flag | ||
if LooseVersion(self.version) >= LooseVersion('2.1'): | ||
self.log.info("[pre-configure hook] Re-enabling ucx") | ||
self.cfg['configopts'] = self.cfg['configopts'].replace('--without-ucx', ' ') | ||
|
||
# And we can remove the --disable-dlopen option from the easyconfig file | ||
self.log.info("[pre-configure hook] Re-enabling dlopen") | ||
self.cfg['configopts'] = self.cfg['configopts'].replace('--disable-dlopen', ' ') |
Oops, something went wrong.