Skip to content

external prrte: Compile mpirun with PRTE_PATH to find prterun. #9963

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

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

awlauria
Copy link
Contributor

@awlauria awlauria commented Feb 3, 2022

Fixes a bug where out-of-the-box ompi builds with an
external prrte will fail to find prterun. As a last
resort, check this path in an attempt to find prterun.

Refs: #9917

Signed-off-by: Austen Lauria [email protected]

@awlauria awlauria requested review from rhc54 and bwbarrett February 3, 2022 20:32
@awlauria awlauria force-pushed the fix_mpirun_external_2 branch from 3b8d3b5 to b1b5b1b Compare February 3, 2022 20:39
@awlauria awlauria changed the title external prrte: Comile mpirun with PRTE_PATH to find prterun. external prrte: Compile mpirun with PRTE_PATH to find prterun. Feb 3, 2022
@@ -95,6 +95,9 @@ AC_DEFUN([OMPI_SETUP_PRRTE],[
AM_CONDITIONAL([OMPI_WANT_PRRTE],
[test "$prrte_setup_internal_happy" = "1" -o "$prrte_setup_external_happy" = "1"])

AM_CONDITIONAL([OMPI_EXTERNAL_PRRTE],
Copy link
Member

Choose a reason for hiding this comment

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

Why do this rather than AC_DEFINEing the data you actually want? The only time to use -D as CPPFLAGS is when you expect that variable to change between configure and build time (like some of the prefix options).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did it this way to limit the scope to just mpirun. I can make the change though to AC_DEFINE it.

Copy link
Member

Choose a reason for hiding this comment

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

Traditionally, we haven't worried about that scoping. And the AM_CONDITIONAL + -D bites us in the butt just often enough to make it work avoiding.

Fixes a bug where out-of-the-box ompi builds with an
external prrte will fail to find prterun. As a last
resort, check this path in an attempt to find prterun.

Signed-off-by: Austen Lauria <[email protected]>
@awlauria awlauria force-pushed the fix_mpirun_external_2 branch from b1b5b1b to 66c7664 Compare February 3, 2022 21:47
@awlauria awlauria merged commit 02020f3 into open-mpi:master Feb 4, 2022
@awlauria awlauria deleted the fix_mpirun_external_2 branch February 4, 2022 13:27
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.

2 participants