summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
Diffstat (limited to 'perform')
-rw-r--r--perform/sio_engine.c10
-rw-r--r--perform/sio_perf.c4
2 files changed, 6 insertions, 8 deletions
diff --git a/perform/sio_engine.c b/perform/sio_engine.c
index 3519f9b..6c1d5b1 100644
--- a/perform/sio_engine.c
+++ b/perform/sio_engine.c
@@ -728,6 +728,9 @@ static herr_t posix_buffer_write(int local_dim, file_descr *fd, parameters *parm
int dtype_size = 1;
int ret_code = SUCCESS;
long i;
+ size_t d_offset;
+ size_t linear_dset_offset = 0;
+ int j, rc;
/* if dimension is not contiguous, call recursively */
if (local_dim < parms->rank-1 && local_dim != cont_dim) {
@@ -746,8 +749,6 @@ static herr_t posix_buffer_write(int local_dim, file_descr *fd, parameters *parm
} else {
buf_offset[local_dim] = 0;
- size_t linear_dset_offset = 0, d_offset;
- int j, rc;
/* determine offset in the buffer */
for (i=0; i < parms->rank; i++){
@@ -1011,6 +1012,9 @@ static herr_t posix_buffer_read(int local_dim, file_descr *fd, parameters *parms
int dtype_size = 1;
int ret_code = SUCCESS;
long i;
+ size_t d_offset;
+ size_t linear_dset_offset = 0;
+ int j, rc;
/* if local dimension is not contiguous, recurse */
if (local_dim < parms->rank-1 && local_dim != cont_dim) {
@@ -1025,8 +1029,6 @@ static herr_t posix_buffer_read(int local_dim, file_descr *fd, parameters *parms
} else {
buf_offset[local_dim] = 0;
- size_t linear_dset_offset = 0, d_offset;
- int j, rc;
/* determine offset in buffer */
for (i=0; i<parms->rank; i++){
d_offset=1;
diff --git a/perform/sio_perf.c b/perform/sio_perf.c
index 52e80fc..9e5ed23 100644
--- a/perform/sio_perf.c
+++ b/perform/sio_perf.c
@@ -861,9 +861,6 @@ report_parameters(struct options *opts)
HDfprintf(output, "Number of iterations=%Hd\n",
(long_long)opts->num_iters);
- //HDfprintf(output, "Size of dataset(s)=");
- //recover_size_and_print((long_long)(opts->num_bpp), "\n");
-
HDfprintf(output, "Dataset size=");
for (i=0; i<rank; i++)
@@ -1217,7 +1214,6 @@ parse_command_line(int argc, char *argv[])
if (isalnum(*end) && i < 10)
buf[i++] = *end;
- //cl_opts->order[j] = atoi(buf);
cl_opts->order[j] = parse_size_directive(buf);
j++;