summaryrefslogtreecommitdiffstats
path: root/perform/pio_timer.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-11-15 22:46:32 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-11-15 22:46:32 (GMT)
commitaf35ac0ec1aa4ca7ec31ae58cf8e47b620f54062 (patch)
treea6fe604e17deeea9c5844dd8e950ca7739dba813 /perform/pio_timer.c
parent5077ac0c90290efc9611fcfca7c689f9b66b6d0d (diff)
downloadhdf5-af35ac0ec1aa4ca7ec31ae58cf8e47b620f54062.zip
hdf5-af35ac0ec1aa4ca7ec31ae58cf8e47b620f54062.tar.gz
hdf5-af35ac0ec1aa4ca7ec31ae58cf8e47b620f54062.tar.bz2
[svn-r4608]
Purpose: bug Fix Description: Changed the code so that if parallel stuff isn't enabled, then we don't compile the parallel code. Solution: Cleaned up the code and put #ifdef's around it checking for parallel flags. Platforms tested: Linux
Diffstat (limited to 'perform/pio_timer.c')
-rw-r--r--perform/pio_timer.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/perform/pio_timer.c b/perform/pio_timer.c
index 1220e38..6fc078e 100644
--- a/perform/pio_timer.c
+++ b/perform/pio_timer.c
@@ -12,15 +12,12 @@
#include <stdio.h>
#include <stdlib.h>
-#include <mpi.h>
-
-#if 0
-#include "hdf5.h"
+#include "pio_timer.h"
-#endif /* 0 */
+#ifdef H5_HAVE_PARALLEL
-#include "pio_timer.h"
+#include <mpi.h>
/*
* The number to divide the tv_usec field with to get a nice decimal to add to
@@ -135,3 +132,5 @@ get_time(perf_time *pt, timer_type t)
{
return pt->total_time[t];
}
+
+#endif /* H5_HAVE_PARALLEL */