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

Re: [OMPI users] OpenMPI 1.3.2 with PathScale 3.2

2009-05-15 Thread David O. Gunter
Pathscale supports -O3 (at least as of the 3.1 line). Here are some suggestions from the 3.2 Users Manual you may also want to try. -david If there are numerical problems with -O3 -OPT:Ofast, then try either of the following: -O3 -OPT:Ofast:ro=1 -O3 -OPT:Ofast:div_split=OFF Note that ’ro’