diff options
author | Christian Chilan <chilan@hdfgroup.org> | 2009-04-17 01:32:13 (GMT) |
---|---|---|
committer | Christian Chilan <chilan@hdfgroup.org> | 2009-04-17 01:32:13 (GMT) |
commit | 2c94653c7e14c8a02c9c64965fe7a00495125546 (patch) | |
tree | 9ecbe58c12fd49cd61406bc234fa5f483b0d0b2d | |
parent | 7cb785674ed597083005ecb6045dcf2c7c91b183 (diff) | |
download | hdf5-2c94653c7e14c8a02c9c64965fe7a00495125546.zip hdf5-2c94653c7e14c8a02c9c64965fe7a00495125546.tar.gz hdf5-2c94653c7e14c8a02c9c64965fe7a00495125546.tar.bz2 |
[svn-r16770] Modified parallel tests so they can run with arbitrary number of processors.
Tested on jam and abe.
-rw-r--r-- | testpar/t_posix_compliant.c | 4 | ||||
-rw-r--r-- | testpar/testphdf5.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/testpar/t_posix_compliant.c b/testpar/t_posix_compliant.c index 1be3e99..af0e6bc 100644 --- a/testpar/t_posix_compliant.c +++ b/testpar/t_posix_compliant.c @@ -819,11 +819,11 @@ main(int argc, char* argv[]) if(write_size == 0) { - lb = 1024; + lb = 16*numprocs*sizeof(int); /* 1MB MPIO-IO overlapping is failing in copper. Lower it now pending permenant fix for copper.*/ /* ub = 1024*1024;*/ - ub = 1024*512; + ub = lb*128; inc = 4; } else diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index c88d265..175d159 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -138,8 +138,6 @@ parse_options(int argc, char **argv) MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); /* setup default chunk-size. Make sure sizes are > 0 */ - dim0 = ROW_FACTOR*mpi_size; - dim1 = COL_FACTOR*mpi_size; chunkdim0 = (dim0+9)/10; chunkdim1 = (dim1+9)/10; @@ -328,6 +326,9 @@ int main(int argc, char **argv) MPI_Comm_size(MPI_COMM_WORLD, &mpi_size); MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); + dim0 = ROW_FACTOR*mpi_size; + dim1 = COL_FACTOR*mpi_size; + if (MAINPROCESS){ printf("===================================\n"); printf("PHDF5 TESTS START\n"); |