Skip to content
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

Mark MPI as required if explicitly requested during CMake configuration #2400

Merged
merged 2 commits into from
May 23, 2022

Conversation

hakonsbm
Copy link
Contributor

During CMake configuration, if MPI is explicitly requested (with -Dwith-mpi=ON), MPI is set as REQUIRED which makes CMake error if MPI is not found. Previously CMake would continue, and NEST would be installed without MPI support (this may be loosely related to #2381).

Furthermore, if with-mpi is passed a path, it is not used to find MPI as indicated by the documentation. There are no good ways to select an MPI installation based on the path alone, and this is a corner-case anyway, so the related text in the documentation is instead removed.

@hakonsbm hakonsbm added S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation. I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels May 19, 2022
@hakonsbm hakonsbm added this to To do in Installation via automation May 19, 2022
@gtrensch gtrensch moved this from To do to Review in Installation May 23, 2022
Copy link
Contributor

@gtrensch gtrensch left a comment

Choose a reason for hiding this comment

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

Thank you for this contribution! 👍

Copy link
Contributor

@jougs jougs left a comment

Choose a reason for hiding this comment

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

Thanks for addressing this. I was bitten by this more than once myself.

@jougs jougs merged commit 2ebc3ff into nest:master May 23, 2022
Installation automation moved this from Review to Done May 23, 2022
@hakonsbm hakonsbm deleted the CMake_MPI_flag branch May 23, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Installation
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants