Skip to content

Commit 95e63d7

Browse files
committed
cxx bindings: fix support for --disable-mpi-io configure option
Fixes #2179
1 parent 67684be commit 95e63d7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ompi/mpi/cxx/cxx_glue.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* Copyright (c) 2016 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2016 Research Organization for Information Science
6+
* and Technology (RIST). All rights reserved.
57
* $COPYRIGHT$
68
*
79
* Additional copyrights may follow
@@ -47,10 +49,12 @@ int ompi_cxx_errhandler_invoke_comm (MPI_Comm comm, int ret, const char *message
4749
return OMPI_ERRHANDLER_INVOKE (comm, ret, message);
4850
}
4951

52+
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
5053
int ompi_cxx_errhandler_invoke_file (MPI_File file, int ret, const char *message)
5154
{
5255
return OMPI_ERRHANDLER_INVOKE (file, ret, message);
5356
}
57+
#endif
5458

5559
int ompi_cxx_attr_create_keyval_comm (MPI_Comm_copy_attr_function *copy_fn,
5660
MPI_Comm_delete_attr_function* delete_fn, int *keyval, void *extra_state,
@@ -110,6 +114,7 @@ MPI_Errhandler ompi_cxx_errhandler_create_win (void *fn)
110114
return errhandler;
111115
}
112116

117+
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
113118
MPI_Errhandler ompi_cxx_errhandler_create_file (void *fn)
114119
{
115120
ompi_errhandler_t *errhandler;
@@ -120,6 +125,7 @@ MPI_Errhandler ompi_cxx_errhandler_create_file (void *fn)
120125
(ompi_errhandler_cxx_dispatch_fn_t *) ompi_mpi_cxx_file_errhandler_invoke;
121126
return errhandler;
122127
}
128+
#endif
123129

124130
ompi_cxx_intercept_file_extra_state_t
125131
*ompi_cxx_new_intercept_state (void *read_fn_cxx, void *write_fn_cxx, void *extent_fn_cxx,

ompi/mpi/cxx/cxx_glue.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* Copyright (c) 2016 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2016 Research Organization for Information Science
6+
* and Technology (RIST). All rights reserved.
57
* $COPYRIGHT$
68
*
79
* Additional copyrights may follow
@@ -50,7 +52,6 @@ typedef void (ompi_errhandler_cxx_dispatch_fn_t)(void *handle, int *err_code,
5052
ompi_cxx_communicator_type_t ompi_cxx_comm_get_type (MPI_Comm comm);
5153

5254
int ompi_cxx_errhandler_invoke_comm (MPI_Comm comm, int ret, const char *message);
53-
int ompi_cxx_errhandler_invoke_file (MPI_File file, int ret, const char *message);
5455

5556
int ompi_cxx_attr_create_keyval_comm (MPI_Comm_copy_attr_function *copy_fn,
5657
MPI_Comm_delete_attr_function* delete_fn, int *keyval, void *extra_state,
@@ -67,6 +68,7 @@ void ompi_mpi_cxx_comm_errhandler_invoke (MPI_Comm *mpi_comm, int *err,
6768
void ompi_mpi_cxx_win_errhandler_invoke (MPI_Win *mpi_comm, int *err,
6869
const char *message, void *win_fn);
6970
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
71+
int ompi_cxx_errhandler_invoke_file (MPI_File file, int ret, const char *message);
7072
void ompi_mpi_cxx_file_errhandler_invoke (MPI_File *mpi_comm, int *err,
7173
const char *message, void *file_fn);
7274
#endif

0 commit comments

Comments
 (0)