[MPICH] MPI-IO, vector dataype
Rajeev Thakur
thakur at mcs.anl.gov
Thu May 3 13:46:16 CDT 2007
> Given (just the relevant code snippets)
> nprocs = 2, FILESIZE = 256, INTS_PER_BLK = 4,
> bufsize(FILESIZE/nprocs), nints(bufsize/sizeof(int)),
>
> filetype.Create_vector(nints/INTS_PER_BLK, INTS_PER_BLK,
> INTS_PER_BLK * nprocs);
>
> which works out to Create_vector(4, 8, 16) (intrinsic
> type MPI_INT)
Should be (8, 4, 8)
> f.Set_view(INTS_PER_BLK*sizeof(int)*myrank, MPI_INT,
> filetype, "native", MPI_INFO_NULL);
>
> which works out to Set_view(32 or 0 bytes, ...)
Should be (16 or 0 bytes, ...)
Rajeev
More information about the mpich-discuss
mailing list