Skip to content

Attempt at patching phist find mpi heuristic for updated phist version#32688

Merged
adamjstewart merged 2 commits intospack:developfrom
johnwparent:bugfix-resolve-phist-build-mpi-failure
Sep 18, 2022
Merged

Attempt at patching phist find mpi heuristic for updated phist version#32688
adamjstewart merged 2 commits intospack:developfrom
johnwparent:bugfix-resolve-phist-build-mpi-failure

Conversation

@johnwparent
Copy link
Copy Markdown
Contributor

@johnwparent johnwparent commented Sep 16, 2022

This is a tentative fix for the current Gitlab CI issues plaguing develop where phist fails due to GCC complaining about a type mismatch in some calls to MPI.

This solve is based on a previous issue with phist, where its bundled findMPI.cmake is conflicting with Spack derived MPI location determination.

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Sep 16, 2022

@jthies can you review this PR?

This PR modifies the following package(s), for which you are listed as a maintainer:

  • phist

@johnwparent johnwparent marked this pull request as draft September 16, 2022 18:09
# MPI installation to be used than the one spack wants.
def patch(self):
if self.spec.satisfies("@1.9.6"):
if self.spec.satisfies("@1.9.6:"):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This patch undoes the switch from the unsafe 'mpi' to the better 'mpi_f08' module which is unfortunate. The actual fix should be to make it possible to query wether an mpi spec provides mpi_f08, and patch phist only if it doesn't.
Still I think this is OK for now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This PR is intended as a stopgap to allow the CI to continue functioning without error, but thank you for pointing this out. I'll leave a TODO to indicate that this should not languish in its current state.

@johnwparent johnwparent marked this pull request as ready for review September 17, 2022 20:37
Copy link
Copy Markdown
Member

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

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

Hit this same problem in CI. Let's merge for now and think about a better long term solution at our leisure.

@adamjstewart adamjstewart merged commit 0376a62 into spack:develop Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants