summaryrefslogtreecommitdiffstats
path: root/perform/sio_engine.c
diff options
context:
space:
mode:
authorChristian Chilan <chilan@hdfgroup.org>2008-04-11 21:25:30 (GMT)
committerChristian Chilan <chilan@hdfgroup.org>2008-04-11 21:25:30 (GMT)
commit512f4ff28ff8a3289c1f2582351f5f31f636e7b9 (patch)
treef04e52d7da0f9ff1979338f27e33274e7fd22c2b /perform/sio_engine.c
parentd3e9a4cb40889c95e9ca4cad5f89aa1d961e5c2c (diff)
downloadhdf5-512f4ff28ff8a3289c1f2582351f5f31f636e7b9.zip
hdf5-512f4ff28ff8a3289c1f2582351f5f31f636e7b9.tar.gz
hdf5-512f4ff28ff8a3289c1f2582351f5f31f636e7b9.tar.bz2
[svn-r14829] Revised files of the serial benchmarking tool.
Tested on kagiso, smirom, and linew.
Diffstat (limited to 'perform/sio_engine.c')
-rw-r--r--perform/sio_engine.c10
1 files changed, 6 insertions, 4 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;