Opened 8 years ago

#10223 new Bugs

Destructor of boost::mpi::environment should not throw exception

Reported by: anonymous Owned by: Matthias Troyer
Milestone: To Be Determined Component: mpi
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

The destructor of boost::mpi::environment uses the BOOST_MPI_CHECK_RESULT macro to invoke MPI_Finalize.

BOOST_MPI_CHECK_RESULT(MPI_Finalize, ());

If MPI_Finalize does not return MPI_SUCCESS, the macro will throw boost::mpi::exception. However, it is not a good idea for a destructor to throw.

I suggest the destructor just call MPI_Finalize() without using the MACRO

Change History (0)

Note: See TracTickets for help on using tickets.