mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-12 15:04:59 +08:00
[svn-r16770] Modified parallel tests so they can run with arbitrary number of processors.
Tested on jam and abe.
This commit is contained in:
parent
7cb785674e
commit
2c94653c7e
@ -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
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user