diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2004-07-20 21:41:44 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2004-07-20 21:41:44 (GMT) |
commit | 3176090a0381967a6c2e4fdd22fd203bb335ed7a (patch) | |
tree | a3ba2c1718c9f0bd4d6cc25fa038947104ef004f /testpar/testphdf5.h | |
parent | 8933c596946b9ba88fb2ca66a3f46f1f1d209aed (diff) | |
download | hdf5-3176090a0381967a6c2e4fdd22fd203bb335ed7a.zip hdf5-3176090a0381967a6c2e4fdd22fd203bb335ed7a.tar.gz hdf5-3176090a0381967a6c2e4fdd22fd203bb335ed7a.tar.bz2 |
[svn-r8907] Purpose:
To add collective chunk IO tests.
Description:
three tests are added.
1. Only one hyperslab for each process, and this hyperslab is fit in exactly one chunk.
2. non-contiguous hyperslabs in each process, these hyperslabs are fit in one chunk.
3. Single hyperslab for each process, smaller chunk is assigned. Number of chunks for
every process is equal.
Solution:
the dataset size is set to be very small, will enlarge later.
Platforms tested:
AIX 5.1(copper)
Misc. update:
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); |