1
1
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
Этот коммит содержится в:
Nathan Hjelm 2016-10-12 11:30:36 -06:00
родитель b11c9574d4
Коммит ab0a005c95
5 изменённых файлов: 10 добавлений и 15 удалений

Просмотреть файл

@ -51,7 +51,7 @@ MPI::Comm::Comm(const Comm_Null& data) : Comm_Null(data)
MPI::Errhandler
MPI::Comm::Create_errhandler(MPI::Comm::_MPI2CPP_ERRHANDLERFN_* function)
{
return ompi_cxx_errhandler_create_comm ((void *) function);
return ompi_cxx_errhandler_create_comm ((ompi_cxx_dummy_fn_t *) function);
}

Просмотреть файл

@ -92,7 +92,7 @@ int ompi_cxx_attr_create_keyval_type (MPI_Type_copy_attr_function *copy_fn,
return ompi_attr_create_keyval (TYPE_ATTR, copy_fn_u, delete_fn_u, keyval, extra_state, 0, NULL);
}
MPI_Errhandler ompi_cxx_errhandler_create_comm (void *fn)
MPI_Errhandler ompi_cxx_errhandler_create_comm (ompi_cxx_dummy_fn_t *fn)
{
ompi_errhandler_t *errhandler;
errhandler = ompi_errhandler_create(OMPI_ERRHANDLER_TYPE_COMM,
@ -103,7 +103,7 @@ MPI_Errhandler ompi_cxx_errhandler_create_comm (void *fn)
return errhandler;
}
MPI_Errhandler ompi_cxx_errhandler_create_win (void *fn)
MPI_Errhandler ompi_cxx_errhandler_create_win (ompi_cxx_dummy_fn_t *fn)
{
ompi_errhandler_t *errhandler;
errhandler = ompi_errhandler_create(OMPI_ERRHANDLER_TYPE_WIN,
@ -115,7 +115,7 @@ MPI_Errhandler ompi_cxx_errhandler_create_win (void *fn)
}
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
MPI_Errhandler ompi_cxx_errhandler_create_file (void *fn)
MPI_Errhandler ompi_cxx_errhandler_create_file (ompi_cxx_dummy_fn_t *fn)
{
ompi_errhandler_t *errhandler;
errhandler = ompi_errhandler_create(OMPI_ERRHANDLER_TYPE_FILE,
@ -147,12 +147,6 @@ ompi_cxx_intercept_file_extra_state_t
return &intercept->state;
}
void ompi_cxx_errhandler_set_dispatch_fn (ompi_errhandler_t *errhandler,
ompi_errhandler_cxx_dispatch_fn_t *dispatch_fn)
{
errhandler->eh_cxx_dispatch_fn = dispatch_fn;
}
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)
{

Просмотреть файл

@ -49,6 +49,7 @@ extern struct ompi_predefined_errhandler_t ompi_mpi_errors_throw_exceptions;
*/
typedef void (ompi_errhandler_cxx_dispatch_fn_t)(void *handle, int *err_code,
const char *message, ompi_errhandler_generic_handler_fn_t *fn);
typedef void (ompi_cxx_dummy_fn_t) (void);
ompi_cxx_communicator_type_t ompi_cxx_comm_get_type (MPI_Comm comm);
@ -74,9 +75,9 @@ void ompi_mpi_cxx_file_errhandler_invoke (MPI_File *mpi_comm, int *err,
const char *message, void *file_fn);
#endif
MPI_Errhandler ompi_cxx_errhandler_create_comm (void *fn);
MPI_Errhandler ompi_cxx_errhandler_create_win (void *fn);
MPI_Errhandler ompi_cxx_errhandler_create_file (void *fn);
MPI_Errhandler ompi_cxx_errhandler_create_comm (ompi_cxx_dummy_fn_t *fn);
MPI_Errhandler ompi_cxx_errhandler_create_win (ompi_cxx_dummy_fn_t *fn);
MPI_Errhandler ompi_cxx_errhandler_create_file (ompi_cxx_dummy_fn_t *fn);
ompi_cxx_intercept_file_extra_state_t
*ompi_cxx_new_intercept_state (void *read_fn_cxx, void *write_fn_cxx, void *extent_fn_cxx,

Просмотреть файл

@ -28,7 +28,7 @@ MPI::File::Close()
MPI::Errhandler
MPI::File::Create_errhandler(MPI::File::Errhandler_function* function)
{
return ompi_cxx_errhandler_create_file ((void *) function);
return ompi_cxx_errhandler_create_file ((ompi_cxx_dummy_fn_t *) function);
}

Просмотреть файл

@ -28,7 +28,7 @@ MPI::Win::Free()
MPI::Errhandler
MPI::Win::Create_errhandler(MPI::Win::Errhandler_function* function)
{
return ompi_cxx_errhandler_create_win ((void *) function);
return ompi_cxx_errhandler_create_win ((ompi_cxx_dummy_fn_t *) function);
}