Skip to content

Allow support for MPICH/MPICH2#579

Merged
boegel merged 11 commits intoeasybuilders:developfrom
ocaisa:patch-1
Mar 13, 2015
Merged

Allow support for MPICH/MPICH2#579
boegel merged 11 commits intoeasybuilders:developfrom
ocaisa:patch-1

Conversation

@ocaisa
Copy link
Copy Markdown
Member

@ocaisa ocaisa commented Mar 12, 2015

No description provided.

@hpcugentbot
Copy link
Copy Markdown

Automatic reply from Jenkins: Can I test this?

Comment thread easybuild/easyblocks/c/cp2k.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks trivial, but.. .:-)

We should probably be using the mpi_family() function here, rather than relying on get_software_root.

@ocaisa: up for looking into that?

Also: do you have a matching easyconfig to test this change? It's pretty clear that this shouldn't break anything that works already.

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 12, 2015

Jenkins: ok to test

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/842/
Test PASSed.

Along the lines of the imkl easyblock, added support for checking the MPI compatibility based on the toolchain mpi_family() as well as keeping the fallback for weird situations
@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/843/
Test PASSed.

@ocaisa
Copy link
Copy Markdown
Member Author

ocaisa commented Mar 13, 2015

Annoyingly I don't have a verified matching easyconfig, I can't get it build at all on JuropaTest because during the regtest it tries to use mpirun (which is not supported, only srun) so it just hangs. I tried getting it to skip tests but it refuses to

Comment thread easybuild/easyblocks/c/cp2k.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, does it make sense to have that in here?

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 13, 2015

@ocaisa: just including 'runtest = False' in the CP2K easyconfig should take care of skipping the test_step?

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 13, 2015

Ah, no, the CP2K easyblock includes this:

# always enable testing for CP2K
self.cfg['runtest'] = True

That's just wrong... The runtest should be enabled by default, like we do for WRF:

def extra_options():
            ...
            'runtest': [True, "Build and run WRF tests", CUSTOM],
            ...

Feel free to tackle that too in here, we shouldn't be hard enabling the tests like that.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/844/
Test PASSed.

The tests currently require mpirun so won't work on systems where that's not available, should give people the opportunity to bypass
@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/845/
Test PASSed.

@ocaisa
Copy link
Copy Markdown
Member Author

ocaisa commented Mar 13, 2015

I'll give it a whirl now and see how it goes

Comment thread easybuild/easyblocks/c/cp2k.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the value for mpi_spec is the same regardless of which toolchain it is, this can be cleaned up a bit to:

known_mpi2_fams = [toolchain.MPICH, toolchain.MPICH2, toolchain.MVAPICH2, toolchan.OPENMPI, toolchain.IMPI]
if self.toolchain.mpi_family() in known_mpi2_fams:
    mpi2 = True

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/846/
Test PASSed.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/847/
Test PASSed.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/848/
Test PASSed.

... as derived from TC_CONSTANT_INTELMPI
@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/849/
Test PASSed.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/850/
Test PASSed.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/851/
Test PASSed.

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 13, 2015

Tested via easybuilders/easybuild-easyconfigs#1471, looking good, so going in.

Thanks @ocaisa!

boegel added a commit that referenced this pull request Mar 13, 2015
Allow support for MPICH/MPICH2
@boegel boegel merged commit 0fd745d into easybuilders:develop Mar 13, 2015
@ocaisa ocaisa deleted the patch-1 branch December 15, 2015 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants