mpi.h: file errhandeler typedef: use new form of name
The old/deprecated form of the file errhandler typedef used "fn" as a suffix. The new form uses the name "function". The MPI API typedef name has already been updated to use "function"; this commit updates the internal Open MPI typedef to use the name "function" to match the MPI API name and avoid confusion. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
aa5e1df2c0
Коммит
11ab621555
@ -202,7 +202,7 @@ ompi_errhandler_t *ompi_errhandler_create(ompi_errhandler_type_t object_type,
|
||||
new_errhandler->eh_comm_fn = (MPI_Comm_errhandler_function *)func;
|
||||
break;
|
||||
case (OMPI_ERRHANDLER_TYPE_FILE):
|
||||
new_errhandler->eh_file_fn = (ompi_file_errhandler_fn *)func;
|
||||
new_errhandler->eh_file_fn = (ompi_file_errhandler_function *)func;
|
||||
break;
|
||||
case (OMPI_ERRHANDLER_TYPE_WIN):
|
||||
new_errhandler->eh_win_fn = (MPI_Win_errhandler_function *)func;
|
||||
|
@ -117,7 +117,7 @@ struct ompi_errhandler_t {
|
||||
can be invoked on any MPI object type, so we need callbacks for
|
||||
all of three. */
|
||||
MPI_Comm_errhandler_function *eh_comm_fn;
|
||||
ompi_file_errhandler_fn *eh_file_fn;
|
||||
ompi_file_errhandler_function *eh_file_fn;
|
||||
MPI_Win_errhandler_function *eh_win_fn;
|
||||
ompi_errhandler_fortran_handler_fn_t *eh_fort_fn;
|
||||
|
||||
|
@ -385,11 +385,11 @@ typedef int (MPI_Datarep_conversion_function)(void *, MPI_Datatype,
|
||||
typedef void (MPI_Comm_errhandler_function)(MPI_Comm *, int *, ...);
|
||||
|
||||
/* This is a little hackish, but errhandler.h needs space for a
|
||||
MPI_File_errhandler_fn. While it could just be removed, this
|
||||
MPI_File_errhandler_function. While it could just be removed, this
|
||||
allows us to maintain a stable ABI within OMPI, at least for
|
||||
apps that don't use MPI I/O. */
|
||||
typedef void (ompi_file_errhandler_fn)(MPI_File *, int *, ...);
|
||||
typedef ompi_file_errhandler_fn MPI_File_errhandler_function;
|
||||
typedef void (ompi_file_errhandler_function)(MPI_File *, int *, ...);
|
||||
typedef ompi_file_errhandler_function MPI_File_errhandler_function;
|
||||
typedef void (MPI_Win_errhandler_function)(MPI_Win *, int *, ...);
|
||||
typedef void (MPI_User_function)(void *, void *, int *, MPI_Datatype *);
|
||||
typedef int (MPI_Comm_copy_attr_function)(MPI_Comm, int, void *,
|
||||
@ -412,7 +412,7 @@ typedef int (MPI_Grequest_cancel_function)(void *, int);
|
||||
*/
|
||||
typedef MPI_Comm_errhandler_function MPI_Comm_errhandler_fn
|
||||
__mpi_interface_removed__("MPI_Comm_errhandler_fn was removed in MPI-3.0; use MPI_Comm_errhandler_function instead");
|
||||
typedef ompi_file_errhandler_fn MPI_File_errhandler_fn
|
||||
typedef ompi_file_errhandler_function MPI_File_errhandler_fn
|
||||
__mpi_interface_removed__("MPI_File_errhandler_fn was removed in MPI-3.0; use MPI_File_errhandler_function instead");
|
||||
typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn
|
||||
__mpi_interface_removed__("MPI_Win_errhandler_fn was removed in MPI-3.0; use MPI_Win_errhandler_function instead");
|
||||
|
@ -144,7 +144,7 @@ ompi_cxx_intercept_file_extra_state_t
|
||||
}
|
||||
|
||||
void ompi_cxx_errhandler_set_callbacks (struct ompi_errhandler_t *errhandler, MPI_Comm_errhandler_function *eh_comm_fn,
|
||||
ompi_file_errhandler_fn *eh_file_fn, MPI_Win_errhandler_function *eh_win_fn)
|
||||
ompi_file_errhandler_function *eh_file_fn, MPI_Win_errhandler_function *eh_win_fn)
|
||||
{
|
||||
errhandler->eh_comm_fn = eh_comm_fn;
|
||||
errhandler->eh_file_fn = eh_file_fn;
|
||||
|
@ -79,7 +79,7 @@ ompi_cxx_intercept_file_extra_state_t
|
||||
void *extra_state_cxx);
|
||||
|
||||
void ompi_cxx_errhandler_set_callbacks (struct ompi_errhandler_t *errhandler, MPI_Comm_errhandler_function *eh_comm_fn,
|
||||
ompi_file_errhandler_fn *eh_file_fn, MPI_Win_errhandler_function *eh_win_fn);
|
||||
ompi_file_errhandler_function *eh_file_fn, MPI_Win_errhandler_function *eh_win_fn);
|
||||
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user