Skip to content

Commit 34c036a

Browse files
authored
Merge pull request #2020 from ggouaillardet/topic/disable_io_ompio
add a --disable-io-ompio option
2 parents f9ebba4 + 6b57b77 commit 34c036a

File tree

6 files changed

+66
-22
lines changed

6 files changed

+66
-22
lines changed

config/ompi_configure_options.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,5 +263,9 @@ AC_ARG_ENABLE([mpi-io],
263263
the ompio component and a specially modified version of ROMIO
264264
that fits inside the romio314 component])])
265265

266+
AC_ARG_ENABLE([io-ompio],
267+
[AC_HELP_STRING([--disable-io-ompio],
268+
[Disable the ompio ROM-IO component])])
269+
266270
])dnl
267271

ompi/mca/common/ompio/configure.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
AC_DEFUN([MCA_ompi_common_ompio_CONFIG],[
1616
AC_CONFIG_FILES([ompi/mca/common/ompio/Makefile])
1717

18-
AS_IF([test "$enable_mpi_io" != "no"],
18+
AS_IF([test "$enable_mpi_io" != "no" &&
19+
test "$enable_io_ompio" != "no"],
1920
[$1],
2021
[$2])
2122
])dnl

ompi/mca/fbtl/configure.m4

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2016 Research Organization for Information Science
5+
# and Technology (RIST). All rights reserved.
46
#
57
# $COPYRIGHT$
68
#
@@ -13,10 +15,14 @@
1315
# -------------------------------------------
1416
AC_DEFUN([MCA_ompi_fbtl_CONFIG],
1517
[
16-
# An AC-ARG-ENABLE for mpi-io was set in ompi/mca/io/configure.m4.
17-
# If it's no, we shouldn't bother building anything in fcoll.
18-
AS_IF([test "$enable_mpi_io" != "no"],
19-
[want_mpi_io=1],
20-
[want_mpi_io=0])
21-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_mpi_io])
18+
OPAL_VAR_SCOPE_PUSH([want_io_ompio])
19+
20+
AS_IF([test "$enable_mpi_io" != "no" &&
21+
test "$enable_io_ompio" != "no"],
22+
[want_io_ompio=1],
23+
[want_io_ompio=0])
24+
25+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
26+
27+
OPAL_VAR_SCOPE_POP
2228
])

ompi/mca/fcoll/configure.m4

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2016 Research Organization for Information Science
5+
# and Technology (RIST). All rights reserved.
46
#
57
# $COPYRIGHT$
68
#
@@ -13,10 +15,14 @@
1315
# -------------------------------------------
1416
AC_DEFUN([MCA_ompi_fcoll_CONFIG],
1517
[
16-
# An AC-ARG-ENABLE for mpi-io was set in ompi/mca/io/configure.m4.
17-
# If it's no, we shouldn't bother building anything in fcoll.
18-
AS_IF([test "$enable_mpi_io" != "no"],
19-
[want_mpi_io=1],
20-
[want_mpi_io=0])
21-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_mpi_io])
18+
OPAL_VAR_SCOPE_PUSH([want_io_ompio])
19+
20+
AS_IF([test "$enable_mpi_io" != "no" &&
21+
test "$enable_io_ompio" != "no"],
22+
[want_io_ompio=1],
23+
[want_io_ompio=0])
24+
25+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
26+
27+
OPAL_VAR_SCOPE_POP
2228
])

ompi/mca/io/ompio/configure.m4

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- shell-script -*-
2+
#
3+
# Copyright (c) 2016 Research Organization for Information Science
4+
# and Technology (RIST). All rights reserved.
5+
# $COPYRIGHT$
6+
#
7+
# Additional copyrights may follow
8+
#
9+
# $HEADER$
10+
#
11+
12+
# MCA_ompi_io_ompio_CONFIG([action-if-can-compile],
13+
# [action-if-cant-compile])
14+
# ------------------------------------------------
15+
AC_DEFUN([MCA_ompi_io_ompio_CONFIG],[
16+
AC_CONFIG_FILES([ompi/mca/io/ompio/Makefile])
17+
18+
AS_IF([test "$enable_io_ompio" != "no"],
19+
[$1],
20+
[$2])
21+
])dnl

ompi/mca/sharedfp/configure.m4

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
3+
# Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2016 Research Organization for Information Science
5+
# and Technology (RIST). All rights reserved.
46
#
57
# $COPYRIGHT$
68
#
@@ -13,10 +15,14 @@
1315
# -------------------------------------------
1416
AC_DEFUN([MCA_ompi_sharedfp_CONFIG],
1517
[
16-
# An AC-ARG-ENABLE for mpi-io was set in ompi/mca/io/configure.m4.
17-
# If it's no, we shouldn't bother building anything in fcoll.
18-
AS_IF([test "$enable_mpi_io" != "no"],
19-
[want_mpi_io=1],
20-
[want_mpi_io=0])
21-
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_mpi_io])
18+
OPAL_VAR_SCOPE_PUSH([want_io_ompio])
19+
20+
AS_IF([test "$enable_mpi_io" != "no" &&
21+
test "$enable_io_ompio" != "no"],
22+
[want_io_ompio=1],
23+
[want_io_ompio=0])
24+
25+
MCA_CONFIGURE_FRAMEWORK([$1], [$2], [$want_io_ompio])
26+
27+
OPAL_VAR_SCOPE_POP
2228
])

0 commit comments

Comments
 (0)