diff options
Diffstat (limited to 'testpar/testphdf5.h')
-rw-r--r-- | testpar/testphdf5.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testpar/testphdf5.h b/testpar/testphdf5.h index 8fb6b39..1345da3 100644 --- a/testpar/testphdf5.h +++ b/testpar/testphdf5.h @@ -12,6 +12,8 @@ * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* $Id$ */ + #ifndef PHDF5TEST_H #define PHDF5TEST_H @@ -121,6 +123,12 @@ #define FACC_MULTI 0x4 /* Multi File */ #define FACC_MPIPOSIX 0x8 /* MPIPOSIX */ +/*Constants for collective chunk definitions */ +#define SPACE_DIM1 24 +#define SPACE_DIM2 24 +#define BYROW_CONT 1 +#define BYROW_DISCONT 2 +#define DSET_COLLECTIVE_CHUNK_NAME "coll_chunk_name" /* type definitions */ typedef struct H5Ptest_param_t /* holds extra test parameters */ { @@ -162,6 +170,20 @@ void null_dataset(void); void big_dataset(void); void dataset_fillvalue(void); +void coll_chunk1(); +void coll_chunk2(); +void coll_chunk3(); +/* some commonly used routines for collective chunk IO tests*/ +void ccslab_set(int mpi_rank,int mpi_size,hssize_t start[],hsize_t count[], + hsize_t stride[],hsize_t block[],int mode); + +void ccdataset_fill(hssize_t start[],hsize_t count[], + hsize_t stride[],hsize_t block[],DATATYPE*dataset); + +void ccdataset_print(hssize_t start[],hsize_t block[],DATATYPE*dataset); + +int ccdataset_vrfy(hssize_t start[], hsize_t count[], hsize_t stride[], + hsize_t block[], DATATYPE *dataset, DATATYPE *original); /* commonly used prototypes */ hid_t create_faccess_plist(MPI_Comm comm, MPI_Info info, int l_facc_type, hbool_t use_gpfs); MPI_Offset h5_mpi_get_file_size(const char *filename, MPI_Comm comm, MPI_Info info); |