summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
authorLeon Arber <larber@ncsa.uiuc.edu>2005-01-27 23:21:05 (GMT)
committerLeon Arber <larber@ncsa.uiuc.edu>2005-01-27 23:21:05 (GMT)
commit839f1092da94c17b5f541acdd899e00bc13ef31f (patch)
tree6e3bae867ebceee26ba4c196bee86973456e5858 /tools/lib/h5diff_util.c
parent046fe35568d6393cf887b9d6e9e95ccd36917b4a (diff)
downloadhdf5-839f1092da94c17b5f541acdd899e00bc13ef31f.zip
hdf5-839f1092da94c17b5f541acdd899e00bc13ef31f.tar.gz
hdf5-839f1092da94c17b5f541acdd899e00bc13ef31f.tar.bz2
[svn-r9877] Purpose:
Bug fix: Temporary fix for h5repack failures in all parallel builds. Description: The parallel additions to h5diff interfered with h5repack. Solution: Added a second set of "parallel" functions to h5diff.c. h5repack uses the serial versions, whereas h5diff will use the parallel versions. Also, h5diff will now be smart about when to enter parallel mode. If is run with mpirun with more than 1 task, it will enter parallel mode. Otherwise, it will stay in serial mode as before. Platforms tested: heping (serial and parallel) Misc. update:
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r--tools/lib/h5diff_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c
index 416e808..bc66378 100644
--- a/tools/lib/h5diff_util.c
+++ b/tools/lib/h5diff_util.c
@@ -34,7 +34,7 @@ void parallel_print(const char* format, ...)
va_start(ap, format);
- if(!PARALLEL)
+ if(g_nTasks < 2)
vprintf(format, ap);
else
outBuffOffset += vsnprintf(outBuff+outBuffOffset, OUTBUFF_SIZE-outBuffOffset, format, ap);