Skip to content

Commit 8fbfe4c

Browse files
authored
Merge pull request #10701 from hppritcha/mpirun_schizo_libdir
prrte schizo: add an env variable for OMPI libdir
2 parents b20b9a5 + 26d7f2f commit 8fbfe4c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ompi/tools/mpirun/main.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ int main(int argc, char *argv[])
112112
exit(1);
113113
}
114114

115+
/*
116+
* set environment variable for our install location
117+
* used within the OMPI prrte schizo component
118+
*/
119+
120+
setenv("OMPI_LIBDIR_LOC", opal_install_dirs.libdir, 1);
121+
122+
115123
/* calling mpirun (and now prterun) with a full path has a special
116124
* meaning in terms of -prefix behavior, so copy that behavior
117125
* into prterun */
@@ -147,6 +155,9 @@ int main(int argc, char *argv[])
147155
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
148156
* Copyright (c) 2021 Nanook Consulting. All rights reserved.
149157
* Copyright (c) 2022 Amazon.com, Inc. or its affiliates. All Rights reserved.
158+
* Copyright (c) 2022 Triad National Security, LLC. All rights
159+
* reserved.
160+
150161
* $COPYRIGHT$
151162
*
152163
* Additional copyrights may follow

0 commit comments

Comments
 (0)