diff options
author | Christian Chilan <chilan@hdfgroup.org> | 2008-04-12 23:08:08 (GMT) |
---|---|---|
committer | Christian Chilan <chilan@hdfgroup.org> | 2008-04-12 23:08:08 (GMT) |
commit | 438095b24c0ef8e507d3ac3cd69dadf92e95547d (patch) | |
tree | 125b4c2c6cdd40a39fb3c7460c0171c06cb5a25e /perform | |
parent | 512f4ff28ff8a3289c1f2582351f5f31f636e7b9 (diff) | |
download | hdf5-438095b24c0ef8e507d3ac3cd69dadf92e95547d.zip hdf5-438095b24c0ef8e507d3ac3cd69dadf92e95547d.tar.gz hdf5-438095b24c0ef8e507d3ac3cd69dadf92e95547d.tar.bz2 |
[svn-r14831] Revise file of the serial benchmarking tool.
Tested on kagiso, smirom, linew, and tg-login.
Diffstat (limited to 'perform')
-rw-r--r-- | perform/sio_engine.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/perform/sio_engine.c b/perform/sio_engine.c index 6c1d5b1..92d6f1c 100644 --- a/perform/sio_engine.c +++ b/perform/sio_engine.c @@ -456,8 +456,8 @@ do_write(results *res, file_descr *fd, parameters *parms, void *buffer) hsize_t h5maxdims[MAX_DIMS]; int rank; /*rank of dataset */ /* Prepare buffer for verifying data */ -// if (parms->verify) - // memset(buffer,1,linear_buf_size); +/* if (parms->verify) + memset(buffer,1,linear_buf_size); */ buf_p=(unsigned char *)buffer; @@ -555,8 +555,8 @@ do_write(results *res, file_descr *fd, parameters *parms, void *buffer) } /* end if */ sprintf(dname, "Dataset_%ld", (unsigned long)parms->num_bytes); - h5ds_id = H5Dcreate1(fd->h5fd, dname, ELMT_H5_TYPE, - h5dset_space_id, h5dcpl); + h5ds_id = H5Dcreate2(fd->h5fd, dname, ELMT_H5_TYPE, + h5dset_space_id, H5P_DEFAULT, h5dcpl, H5P_DEFAULT); if (h5ds_id < 0) { fprintf(stderr, "HDF5 Dataset Create failed\n"); @@ -692,7 +692,7 @@ static herr_t dset_write(int local_dim, file_descr *fd, parameters *parms, void dims[k] = dims[k]+h5count[k]; hrc=H5Sset_extent_simple(h5dset_space_id,parms->rank,dims,maxdims); VRFY((hrc >= 0), "H5Sset_extent_simple"); - hrc=H5Dextend(h5ds_id,dims); + hrc=H5Dset_extent(h5ds_id,dims); VRFY((hrc >= 0), "H5Dextend"); } } @@ -799,9 +799,6 @@ do_read(results *res, file_descr *fd, parameters *parms, void *buffer) int rank; /* Prepare buffer for verifying data */ - // if (parms->verify) - // memset(buffer,1,linear_buf_size); -// if (parms->verify) for (i=0; i < linear_buf_size; i++) buffer2[i]=i%128; @@ -866,7 +863,7 @@ do_read(results *res, file_descr *fd, parameters *parms, void *buffer) case HDF5: sprintf(dname, "Dataset_%ld", parms->num_bytes); - h5ds_id = H5Dopen1(fd->h5fd, dname); + h5ds_id = H5Dopen2(fd->h5fd, dname, H5P_DEFAULT); if (h5ds_id < 0) { fprintf(stderr, "HDF5 Dataset open failed\n"); GOTOERROR(FAIL); |