diff --git a/src/mpi/interface/c/finalize.c b/src/mpi/interface/c/finalize.c index 1aac37d8a4..981e890783 100644 --- a/src/mpi/interface/c/finalize.c +++ b/src/mpi/interface/c/finalize.c @@ -6,14 +6,16 @@ #include "mpi.h" #include "mpi/interface/c/bindings.h" +#include "mpi/runtime/runtime.h" #if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES #pragma weak MPI_Finalize = PMPI_Finalize #endif -int -MPI_Finalize(void) +int MPI_Finalize(void) { - return MPI_SUCCESS; + /* Pretty simple */ + + return lam_mpi_finalize(); }