summaryrefslogtreecommitdiffstats
path: root/perform/pio_perf.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_perf.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_perf.c')
-rw-r--r--perform/pio_perf.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c
index 8971428..b9de34e 100644
--- a/perform/pio_perf.c
+++ b/perform/pio_perf.c
@@ -53,6 +53,10 @@
#include <stdio.h>
#include <stdlib.h>
+#include "hdf5.h"
+
+#ifdef H5_HAVE_PARALLEL
+
/* library header files */
#include <mpi.h>
@@ -235,7 +239,7 @@ run_test_loop(FILE *output, int max_num_procs, long max_size)
parms.num_files, parms.num_dsets, parms.num_elmts);
/* call Albert's testing here */
- dopio(parms);
+ do_pio(parms);
/* get back ``result'' object and report */
}
}
@@ -284,7 +288,7 @@ usage(const char *prog)
* Function: parse_command_line
* Purpose: Parse the command line options and return a STRUCT OPTIONS
* structure which will need to be freed by the calling function.
- * Return: Nothing
+ * Return: Pointer to an OPTIONS structure
* Programmer: Bill Wendling, 31. October 2001
* Modifications:
*/
@@ -322,3 +326,22 @@ parse_command_line(int argc, char *argv[])
return cl_opts;
}
+
+#else /* H5_HAVE_PARALLEL */
+
+/*
+ * Function: main
+ * Purpose: Dummy main() function for if HDF5 was configured without
+ * parallel stuff.
+ * Return: EXIT_SUCCESS
+ * Programmer: Bill Wendling, 14. November 2001
+ * Modifications:
+ */
+int
+main(void)
+{
+ printf("No parallel IO performance because parallel is not configured\n");
+ return EXIT_SUCCESS;
+}
+
+#endif /* !H5_HAVE_PARALLEL */