LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Oren Shapira (orensha_at_[hidden])
Date: 2005-05-15 14:44:52


Hello!

I am working on parallelization of algorithm that writes calculated coefficients to pre-opened file. Since the number of coefficients is huge and the speed is very important, in serial algorithm I opened the output file for writing of binary data: fout=fopen(fopen_name, "wb").

In the parallel implementation I opened output file as MPI_File and the writing process is very slow. It was opened by following command: MPI_File(MPI_COMM_SELF, filename, MPI_MODE_CREATE|MPI_MODE_WRONLY, MPI_INFO_NULL, &myfile);

I assume that the reason for very slow writing is that the output file was opened in MPI_MODE_WRONLY. I didn't find MPI mode that is parallel to 'wb' mode in C. Can you help me in it? Which mode should I use? Or may be there is another solution for the problem?

Thank you,
  
  

-----------------------------------------------------------------
Oren Shapira,
Research Assistant
Multimedia and Intelligent Systems Research Team
Industrial and Management Engineering Department
Ben Gurion University of the Negev,
Beer-Sheva, 84105, Israel.
Office: 972-8-6472240
Fax: 972-8-6472958
------------------------------------------------------------------