Re: [OMPI users] Can't read values with MPI-IO

2010-01-13 Thread Luís Miranda
I don't know how i dind't see that. :) I guess i'm still a noob in MPI. Thanks for the help On Wed, Jan 13, 2010 at 8:07 PM, David O. Gunter wrote: > I noticed you never checked the return code from your MPI_File_read > statement. If you had used your own mpi() function, it would state > somet

Re: [OMPI users] Can't read values with MPI-IO

2010-01-13 Thread David O. Gunter
I noticed you never checked the return code from your MPI_File_read statement. If you had used your own mpi() function, it would state something like this: MPI_FILE_READ(116): Cannot read from a file opened with amode MPI_MODE_WRONLY -david | Hi, i have this program, that write the rank of a p

Re: [OMPI users] Can't read values with MPI-IO

2010-01-13 Thread David O. Gunter
Hello Luís, You opened the file with write-only mode which causes the subsequent read to fail - although I do not know why the error checking fails to see that. If you change MPI_MODE_WRONLY to MPI_MODE_RDWR then your code works fine. -david -- David Gunter HPC-3: Parallel Tools Team Los Alamos