Skip to content

Commit 206c813

Browse files
authored
Merge pull request #8384 from rhc54/topic/args
Expose the PMIx/PRRTE unique configure args
2 parents a6cf2cd + 540b2dc commit 206c813

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

config/ompi_pmix_add_args.m4

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
AC_DEFUN([OMPI_PMIX_ADD_ARGS],[
2+
opal_show_subtitle "PMIx Configuration options"
3+
4+
AC_ARG_WITH([pmix-platform-patches-dir],
5+
[AC_HELP_STRING([--with-pmix-platform-patches-dir=DIR],
6+
[Location of the platform patches directory. If you use this option, you must also use --with-pmix-platform.])])
7+
8+
AC_ARG_WITH([pmix-platform],
9+
[AC_HELP_STRING([--with-pmix-platform=FILE],
10+
[Load options for build from FILE. Options on the
11+
command line not in FILE are used. Options on the
12+
command line and in FILE are replaced by what is on the command line])])
13+
14+
AC_ARG_WITH([jansson],
15+
[AC_HELP_STRING([--with-jansson(=DIR)],
16+
[Build jansson support (default=no), optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
17+
AC_ARG_WITH([jansson-libdir],
18+
[AC_HELP_STRING([--with-jansson-libdir=DIR],
19+
[Search for Jansson libraries in DIR])])
20+
21+
AC_ARG_WITH([curl],
22+
[AC_HELP_STRING([--with-curl(=DIR)],
23+
[Build curl support (default=no), optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
24+
AC_ARG_WITH([curl-libdir],
25+
[AC_HELP_STRING([--with-curl-libdir=DIR],
26+
[Search for Curl libraries in DIR])])
27+
28+
AC_ARG_WITH([zlib],
29+
[AC_HELP_STRING([--with-zlib=DIR],
30+
[Search for zlib headers and libraries in DIR ])])
31+
AC_ARG_WITH([zlib-libdir],
32+
[AC_HELP_STRING([--with-zlib-libdir=DIR],
33+
[Search for zlib libraries in DIR ])])
34+
35+
AC_ARG_WITH([munge],
36+
[AC_HELP_STRING([--with-munge=DIR],
37+
[Search for munge headers and libraries in DIR ])])
38+
AC_ARG_WITH([munge-libdir],
39+
[AC_HELP_STRING([--with-munge-libdir=DIR],
40+
[Search for munge libraries in DIR ])])
41+
42+
AC_ARG_ENABLE([dstore-pthlck],
43+
[AC_HELP_STRING([--disable-dstore-pthlck],
44+
[Disable pthread-based locking in dstor (default: enabled)])])
45+
])

config/ompi_prrte_add_args.m4

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
AC_DEFUN([OMPI_PRRTE_ADD_ARGS],[
2+
opal_show_subtitle "PRRTE Configuration options"
3+
4+
AC_ARG_WITH([alps],
5+
[AC_HELP_STRING([--with-alps(=DIR|yes|no)],
6+
[Build with ALPS scheduler component, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries (default: auto)])],[],with_alps=auto)
7+
AC_ARG_WITH([alps-libdir],
8+
[AC_HELP_STRING([--with-alps-libdir=DIR],
9+
[Location of alps libraries (alpslli, alpsutil) (default: /usr/lib/alps (/opt/cray/xe-sysroot/default/user on eslogin nodes))])])
10+
11+
AC_ARG_WITH([sge],
12+
[AC_HELP_STRING([--with-sge],
13+
[Build SGE or Grid Engine support (default: no)])])
14+
15+
AC_ARG_WITH([tm],
16+
[AC_HELP_STRING([--with-tm(=DIR)],
17+
[Build TM (Torque, PBSPro, and compatible) support, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
18+
19+
AC_ARG_WITH([moab],
20+
[AC_HELP_STRING([--with-moab],
21+
[Build MOAB scheduler component (default: yes)])])
22+
AC_ARG_WITH([moab-libdir],
23+
[AC_HELP_STRING([--with-moab-libdir=DIR],
24+
[Search for Moab libraries in DIR])])
25+
26+
AC_ARG_WITH([lsf],
27+
[AC_HELP_STRING([--with-lsf(=DIR)],
28+
[Build LSF support])])
29+
AC_ARG_WITH([lsf-libdir],
30+
[AC_HELP_STRING([--with-lsf-libdir=DIR],
31+
[Search for LSF libraries in DIR])])
32+
33+
AC_ARG_WITH([slurm],
34+
[AC_HELP_STRING([--with-slurm],
35+
[Build SLURM scheduler component (default: yes)])])
36+
37+
AC_ARG_WITH([singularity],
38+
[AC_HELP_STRING([--with-singularity(=DIR)],
39+
[Build support for the Singularity container, optionally adding DIR to the search path])])
40+
41+
AC_ARG_WITH([prte-platform-patches-dir],
42+
[AC_HELP_STRING([--with-prte-platform-patches-dir=DIR],
43+
[Location of the platform patches directory. If you use this option, you must also use --with-prte-platform.])])
44+
AC_ARG_WITH([prte-platform],
45+
[AC_HELP_STRING([--with-prte-platform=FILE],
46+
[Load options for build from FILE. Options on the
47+
command line not in FILE are used. Options on the
48+
command line and in FILE are replaced by what is on the command line])])
49+
50+
AC_ARG_ENABLE([prte-ft],
51+
[AC_HELP_STRING([--enable-prte-ft],
52+
[Enable PRRTE fault tolerance support (default: disabled)])])
53+
])

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
# reserved.
3131
# Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
3232
# All Rights reserved.
33+
# Copyright (c) 2021 Nanook Consulting All rights reserved.
3334
# $COPYRIGHT$
3435
#
3536
# Additional copyrights may follow
@@ -295,6 +296,8 @@ OPAL_CHECK_CUDA
295296

296297
m4_ifdef([project_ompi], [OMPI_CONFIGURE_OPTIONS])
297298
m4_ifdef([project_oshmem], [OSHMEM_CONFIGURE_OPTIONS])
299+
OMPI_PMIX_ADD_ARGS
300+
OMPI_PRRTE_ADD_ARGS
298301

299302
# Set up project specific AM_CONDITIONALs
300303
AS_IF([test "$enable_ompi" != "no"], [project_ompi_amc=true], [project_ompi_amc=false])

0 commit comments

Comments
 (0)