I also want to point out that my data is indeed a 1d array; I simply printed it along multiple rows to make it more readable (and to reflect how h5dump would show it).
On Thu, May 21, 2015 at 10:45 PM, Brandon Barker <[email protected]> wrote: > Hi All, > > If there are two processes, and the rank 0 process has data that looks like: > 0 ... 9 > 20 ... 29 > 40 ... 49 > ... > > While rank 1 has: > > 10 ... 19 > 30 ... 39 > ... > > > In this example, I have MPI_CHUNK_SIZE = 10 and the following relevant > configurations: > > /* dataset and memoryset dimensions (just 1d here) */ > hsize_t dimsm[] = {chunk_count * MPI_CHUNK_SIZE}; > hsize_t dimsf[] = {dimsm[0] * mpi_size}; > > /* hyperslab offset and size info */ > hsize_t start[] = {mpi_rank * MPI_CHUNK_SIZE * chunk_count}; > hsize_t count[] = {chunk_count * MPI_CHUNK_SIZE}; > > This gets all the data, but in such a way that all the data from rank > 0 comes before rank 1, rather than having the data written in order: > 0 ... 9 > 10 ... 19 > 20 ... 29 > 30 ... 39 > 40 ... 49 > ... > > Is this possible with pHDF5? > > Best, > Brandon -- Brandon E. Barker http://www.cac.cornell.edu/barker/ _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
