From 8e052e4d589ad7c96fd9e9659ad24e69a31de8b6 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Wed, 21 Jun 2023 15:04:21 -0700 Subject: [PATCH] Call PMPI_Finalize() before we unmount the client Signed-off-by: Chen Wang --- client/src/pmpi_wrappers.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/pmpi_wrappers.c b/client/src/pmpi_wrappers.c index a2f669f6..0d8a17b2 100644 --- a/client/src/pmpi_wrappers.c +++ b/client/src/pmpi_wrappers.c @@ -89,11 +89,6 @@ int unifyfs_mpi_finalize(void) { int rc, ret; - rc = unifyfs_unmount(); - if (UNIFYFS_SUCCESS != rc) { - fprintf(stderr, "UNIFYFS ERROR: unifyfs_unmount() failed with '%s'\n", - unifyfs_rc_enum_description((unifyfs_rc)rc)); - } //fprintf(stderr, "DEBUG: %s - before PMPI_Finalize()\n", __func__); @@ -102,6 +97,12 @@ int unifyfs_mpi_finalize(void) //fprintf(stderr, "DEBUG: %s - after PMPI_Finalize(), ret=%d\n", // __func__, ret); + rc = unifyfs_unmount(); + if (UNIFYFS_SUCCESS != rc) { + fprintf(stderr, "UNIFYFS ERROR: unifyfs_unmount() failed with '%s'\n", + unifyfs_rc_enum_description((unifyfs_rc)rc)); + } + return ret; }