summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-02-06 23:45:15 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-02-06 23:45:15 (GMT)
commit8d817baf4b85760070c4b9a9b60825ee1ed4cfc6 (patch)
tree0f654501631f3cbd77a08021227e3fdfc9f812cf
parent8fb8a22bfd1421c508ab96f7e165289226d415f1 (diff)
downloadhdf5-8d817baf4b85760070c4b9a9b60825ee1ed4cfc6.zip
hdf5-8d817baf4b85760070c4b9a9b60825ee1ed4cfc6.tar.gz
hdf5-8d817baf4b85760070c4b9a9b60825ee1ed4cfc6.tar.bz2
[svn-r9947] Purpose:
Feature Description: Added a new function, phdiff_dismiss_workers, which tells the phdiff worker processes to end. Platforms tested: Tested in heping, serial and parallel. Misc. update:
-rw-r--r--tools/lib/h5diff.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 39be45b..bfeb35b 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -892,3 +892,27 @@ out:
return nfound;
}
+
+
+#ifdef H5_HAVE_PARALLEL
+/*-------------------------------------------------------------------------
+ * Function: phdiff_dismiss_workers
+ *
+ * Purpose: tell all workers to end.
+ *
+ * Return: none
+ *
+ * Programmer: Albert Cheng
+ *
+ * Date: Feb 6, 2005
+ *
+ *-------------------------------------------------------------------------
+ */
+void phdiff_dismiss_workers(void)
+{
+ int i;
+
+ for(i=1; i<g_nTasks; i++)
+ MPI_Send(NULL, 0, MPI_BYTE, i, MPI_TAG_END, MPI_COMM_WORLD);
+}
+#endif