diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-05-05 20:48:33 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-05-05 20:48:33 (GMT) |
commit | c12f91908be82a3864fbbe23ff48a8a8abe629d4 (patch) | |
tree | ba68b0c811b473b1ed9543ee947d9da0f5c12e7e /testpar/t_dset.c | |
parent | f69ae67faa5fd78196f5afd417090c7440781687 (diff) | |
download | hdf5-c12f91908be82a3864fbbe23ff48a8a8abe629d4.zip hdf5-c12f91908be82a3864fbbe23ff48a8a8abe629d4.tar.gz hdf5-c12f91908be82a3864fbbe23ff48a8a8abe629d4.tar.bz2 |
[svn-r6795] Purpose:
Feature Add
Description:
Added knob so that the programmer can enable or disable GPFS
hints during runtime instead of having it only enabled at
configure/compile time. Some of the public APIs were changed
to add an extra parameter for this option...
Platforms tested:
Blue (LLNL). It only affects the MPI/POSIX driver, so no need
to test it on non-GPFS platforms.
Misc. update:
Diffstat (limited to 'testpar/t_dset.c')
-rw-r--r-- | testpar/t_dset.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/testpar/t_dset.c b/testpar/t_dset.c index 41baf2c..03fee85 100644 --- a/testpar/t_dset.c +++ b/testpar/t_dset.c @@ -229,6 +229,7 @@ dataset_writeInd(char *filename) hid_t file_dataspace; /* File dataspace ID */ hid_t mem_dataspace; /* memory dataspace ID */ hid_t dataset1, dataset2; /* Dataset ID */ + hbool_t use_gpfs = FALSE; /* Use GPFS hints */ hsize_t dims[RANK]; /* dataset dim sizes */ DATATYPE *data_array1 = NULL; /* data buffer */ @@ -257,7 +258,7 @@ dataset_writeInd(char *filename) * CREATE AN HDF5 FILE WITH PARALLEL ACCESS * ---------------------------------------*/ /* setup file access template */ - acc_tpl = create_faccess_plist(comm, info, facc_type); + acc_tpl = create_faccess_plist(comm, info, facc_type, use_gpfs); VRFY((acc_tpl >= 0), ""); /* create the file collectively */ @@ -372,6 +373,7 @@ dataset_readInd(char *filename) hid_t file_dataspace; /* File dataspace ID */ hid_t mem_dataspace; /* memory dataspace ID */ hid_t dataset1, dataset2; /* Dataset ID */ + hbool_t use_gpfs = FALSE; /* Use GPFS hints */ DATATYPE *data_array1 = NULL; /* data buffer */ DATATYPE *data_origin1 = NULL; /* expected data buffer */ @@ -399,7 +401,7 @@ dataset_readInd(char *filename) VRFY((data_origin1 != NULL), "data_origin1 malloc succeeded"); /* setup file access template */ - acc_tpl = create_faccess_plist(comm, info, facc_type); + acc_tpl = create_faccess_plist(comm, info, facc_type, use_gpfs); VRFY((acc_tpl >= 0), ""); /* open the file collectively */ @@ -495,6 +497,7 @@ dataset_writeAll(char *filename) hid_t mem_dataspace; /* memory dataspace ID */ hid_t dataset1, dataset2, dataset3, dataset4; /* Dataset ID */ hid_t datatype; /* Datatype ID */ + hbool_t use_gpfs = FALSE; /* Use GPFS hints */ hsize_t dims[RANK]; /* dataset dim sizes */ DATATYPE *data_array1 = NULL; /* data buffer */ @@ -523,7 +526,7 @@ dataset_writeAll(char *filename) * START AN HDF5 FILE * -------------------*/ /* setup file access template */ - acc_tpl = create_faccess_plist(comm, info, facc_type); + acc_tpl = create_faccess_plist(comm, info, facc_type, use_gpfs); VRFY((acc_tpl >= 0), ""); /* create the file collectively */ @@ -851,6 +854,7 @@ dataset_readAll(char *filename) hid_t file_dataspace; /* File dataspace ID */ hid_t mem_dataspace; /* memory dataspace ID */ hid_t dataset1, dataset2; /* Dataset ID */ + hbool_t use_gpfs = FALSE; /* Use GPFS hints */ DATATYPE *data_array1 = NULL; /* data buffer */ DATATYPE *data_origin1 = NULL; /* expected data buffer */ @@ -881,7 +885,7 @@ dataset_readAll(char *filename) * OPEN AN HDF5 FILE * -------------------*/ /* setup file access template */ - acc_tpl = create_faccess_plist(comm, info, facc_type); + acc_tpl = create_faccess_plist(comm, info, facc_type, use_gpfs); VRFY((acc_tpl >= 0), ""); /* open the file collectively */ @@ -1071,6 +1075,7 @@ extend_writeInd(char *filename) hid_t file_dataspace; /* File dataspace ID */ hid_t mem_dataspace; /* memory dataspace ID */ hid_t dataset1, dataset2; /* Dataset ID */ + hbool_t use_gpfs = FALSE; /* Use GPFS hints */ hsize_t dims[RANK]; /* dataset dim sizes */ hsize_t max_dims[RANK] = {H5S_UNLIMITED, H5S_UNLIMITED}; /* dataset maximum dim sizes */ @@ -1108,7 +1113,7 @@ extend_writeInd(char *filename) * START AN HDF5 FILE * -------------------*/ /* setup file access template */ - acc_tpl = create_faccess_plist(comm, info, facc_type); + acc_tpl = create_faccess_plist(comm, info, facc_type, use_gpfs); VRFY((acc_tpl >= 0), ""); /* Reduce the number of metadata cache slots, so that there are cache @@ -1293,6 +1298,7 @@ extend_readInd(char *filename) hid_t file_dataspace; /* File dataspace ID */ hid_t mem_dataspace; /* memory dataspace ID */ hid_t dataset1, dataset2; /* Dataset ID */ + hbool_t use_gpfs = FALSE; /* Use GPFS hints */ hsize_t dims[RANK]; /* dataset dim sizes */ DATATYPE *data_array1 = NULL; /* data buffer */ DATATYPE *data_array2 = NULL; /* data buffer */ @@ -1327,7 +1333,7 @@ extend_readInd(char *filename) * OPEN AN HDF5 FILE * -------------------*/ /* setup file access template */ - acc_tpl = create_faccess_plist(comm, info, facc_type); + acc_tpl = create_faccess_plist(comm, info, facc_type, use_gpfs); VRFY((acc_tpl >= 0), ""); /* open the file collectively */ |