From f2e5edf3200ebd72bc0dfeee50b63ecc0061639a Mon Sep 17 00:00:00 2001 From: Alain Miniussi Date: Tue, 7 Oct 2014 00:39:54 +0200 Subject: [PATCH] The version 3 of the MPI standard is out now. Upgraded really old (1.1) API to 2.x. --- src/communicator.cpp | 2 +- src/timer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/communicator.cpp b/src/communicator.cpp index 82caac6..b2e85e9 100644 --- a/src/communicator.cpp +++ b/src/communicator.cpp @@ -43,7 +43,7 @@ communicator::communicator(const MPI_Comm& comm, comm_create_kind kind) MPI_Comm newcomm; BOOST_MPI_CHECK_RESULT(MPI_Comm_dup, (comm, &newcomm)); comm_ptr.reset(new MPI_Comm(newcomm), comm_free()); - MPI_Errhandler_set(newcomm, MPI_ERRORS_RETURN); + MPI_Comm_set_errhandler(newcomm, MPI_ERRORS_RETURN); break; } diff --git a/src/timer.cpp b/src/timer.cpp index 32d65b4..e3a7dfc 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -13,7 +13,7 @@ bool timer::time_is_global() int* is_global; int found = 0; - BOOST_MPI_CHECK_RESULT(MPI_Attr_get, + BOOST_MPI_CHECK_RESULT(MPI_Comm_get_attr, (MPI_COMM_WORLD, MPI_WTIME_IS_GLOBAL, &is_global, &found)); if (!found)