Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] reading from a file
From: Rob Latham (robl_at_[hidden])
Date: 2011-05-24 11:13:18

On Sat, May 21, 2011 at 05:15:13PM +0530, sushil samant wrote:
> hi all,
> i am a new comer in openmpi programing.i have a txt file containing
> seven column each column contains double type data. What i want to do
> is to read the file in parallel and find the average value and
> standard deviation of each column using c++ and openmpi. If someone
> can provide a sample program with explanation it will be very useful.
> And if understand it i would like to do it for .h5 file.

MPI-IO does not do formatted I/O.

You should just start with the .h5 (HDF5 ? ) file, where decomposing
the dataset over N processors will be more straightforward.


Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA