mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-06 17:20:42 +08:00
[svn-r15043] Bug fix.
Description: perf would crash at the end as it complained it was doing MPI calls after MPI_Finalize() is called. I suspect the HDF5 library is making MPI calls in the at_exit area. This should not happened. Solution: Added the H5exit() right before MPI_Finalize() fixed the problem. But it needs to find out why HDF5 library is making MPI calls in the at_exit() area. It should not. Also, changed the temporay data file name from /tmp/test.out to perftest.out, both to avoid multiple instance of this may use the same /tmp/xxx name and also make the file name less generic. Tested: Kagiso PP.
This commit is contained in:
parent
e6715b9704
commit
e3180b57c0
@ -77,8 +77,8 @@ int opt_iter = 1;
|
||||
int opt_stripe = -1;
|
||||
int opt_correct = 0;
|
||||
int amode = O_RDWR | O_CREAT;
|
||||
char opt_file[256] = "/tmp/test.out\0";
|
||||
char opt_pvfstab[256] = "notset\0";
|
||||
char opt_file[256] = "perftest.out";
|
||||
char opt_pvfstab[256] = "notset";
|
||||
int opt_pvfstab_set = 0;
|
||||
|
||||
/* function prototypes */
|
||||
@ -372,6 +372,8 @@ die_jar_jar_die:
|
||||
|
||||
free(tmp);
|
||||
if (opt_correct) free(tmp2);
|
||||
/* Close down the HDF5 library before MPI_Finalize. */
|
||||
H5close();
|
||||
MPI_Finalize();
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user