summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
Diffstat (limited to 'perform')
-rw-r--r--perform/pio_engine.c15
-rw-r--r--perform/pio_perf.h2
2 files changed, 7 insertions, 10 deletions
diff --git a/perform/pio_engine.c b/perform/pio_engine.c
index 22a8da6..7778477 100644
--- a/perform/pio_engine.c
+++ b/perform/pio_engine.c
@@ -123,7 +123,7 @@ static char *pio_create_filename(iotype iot, const char *base_name,
static herr_t do_write(file_descr fd, iotype iot, long ndsets,
long nelmts, hid_t h5dset_space_id, char *buffer);
static herr_t do_fopen(iotype iot, char *fname, file_descr fd /*out*/,
- int flags, MPI_Comm comm);
+ int flags, MPI_Comm comm);
static herr_t do_fclose(iotype iot, file_descr fd);
herr_t
@@ -138,20 +138,15 @@ do_pio(parameters param)
iotype iot;
char fname[FILENAME_MAX];
- int maxprocs, nfiles, nf;
- long ndsets;
- long nelmts;
- int niters;
- long nelmts_toread, nelmts_read;
- off_t next_offset; /*offset of next I/O */
+ int maxprocs, nfiles, nf;
+ long ndsets, nelmts;
+ int niters;
int color; /*for communicator creation */
char *buffer = NULL; /*data buffer pointer */
/* HDF5 variables */
herr_t hrc; /*HDF5 return code */
hsize_t h5dims[1]; /*dataset dim sizes */
- hsize_t h5block[1], h5stride[1], h5count[1];
- hssize_t h5start[1];
hid_t h5dset_space_id = -1; /*dataset space ID */
hid_t h5mem_space_id = -1; /*memory dataspace ID */
@@ -505,7 +500,7 @@ do_write(file_descr fd, iotype iot, long ndsets,
while (nelmts_written < nelmts){
nelmts_towrite = nelmts - nelmts_written;
- if (nelmts - nelmts_written >= NELMTS_IN_BUFFER) {
+ if (nelmts - nelmts_written >= (int)NELMTS_IN_BUFFER) {
nelmts_towrite = NELMTS_IN_BUFFER;
} else {
/* last write of a partial buffer */
diff --git a/perform/pio_perf.h b/perform/pio_perf.h
index 6386ec4..1fdbaee 100644
--- a/perform/pio_perf.h
+++ b/perform/pio_perf.h
@@ -31,4 +31,6 @@ typedef struct parameters_ {
#define FAIL -1
#endif /* !FAIL */
+extern herr_t do_pio(parameters param);
+
#endif /* PIO_PERF_H__ */