Skip to content

Commit

Permalink
Merge pull request #778 from wangvsa/dev
Browse files Browse the repository at this point in the history
Call PMPI_Finalize() before unmount the client
  • Loading branch information
adammoody authored Jun 26, 2023
2 parents 48c66ee + 8e052e4 commit f95abed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client/src/pmpi_wrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__);

Expand All @@ -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;
}

Expand Down

0 comments on commit f95abed

Please sign in to comment.