hdf5/hdf5-mpi.patch
Matthias Mailänder 2d24c31f44 Accepting request 390197 from home:michel_mno:branches:science
- add hdf5-mpi.patch same as fedora commit id
  78ddcff82b10fd80eafb7b2dc5e4ce2bb9ecbe3c
  should avoid transient hung of t_pflush1 test

OBS-URL: https://build.opensuse.org/request/show/390197
OBS-URL: https://build.opensuse.org/package/show/science/hdf5?expand=0&rev=25
2016-04-17 13:34:23 +00:00

31 lines
821 B
Diff

diff -up hdf5-1.8.16/testpar/t_pflush1.c.mpi hdf5-1.8.16/testpar/t_pflush1.c
--- hdf5-1.8.16/testpar/t_pflush1.c.mpi 2015-10-23 23:13:44.000000000 -0600
+++ hdf5-1.8.16/testpar/t_pflush1.c 2016-03-20 21:46:42.089409776 -0600
@@ -171,6 +171,7 @@ main(int argc, char* argv[])
* because MPI_File_close wants to modify the file-handle variable.
*/
+#if 0
/* close file1 */
if(H5Fget_vfd_handle(file1, fapl, (void **)&mpifh_p) < 0) {
printf("H5Fget_vfd_handle for file1 failed\n");
@@ -189,14 +190,17 @@ main(int argc, char* argv[])
printf("MPI_File_close for file2 failed\n");
goto error;
} /* end if */
+#endif
fflush(stdout);
fflush(stderr);
+ MPI_Finalize();
HD_exit(0);
error:
fflush(stdout);
fflush(stderr);
+ MPI_Finalize();
HD_exit(1);
}