Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JG
Novice
369 Views

Cannot correctly write to a file with MPI-IO and indexed type

Jump to solution
Hello, I am trying to write in a file using MPI-IO, with an indexed type used to set a view of the file (see code sample attached). The program launch but I do not get the result I was expecting. When I output the content of the file via "od -f TEST", I get: 0000000 0 0 1 3 But I was expecting: 0000000 0 2 1 3 I am using Intel MPI 2008 update 1 with gfortran. Regards
0 Kudos
1 Solution
JG
Novice
369 Views

Turns out the problem was with OpenMPI, and Intel MPI was right. The MPI standard 3.1, chapter 13.3 says that the type used to set the view must be monotonically nondecreasing, which is not in my example.

Anyway it could be nice to have an MPI_Error when setting the view rather than a crash when writting to the file.

Where I've found the answer: https://github.com/pmodels/mpich/issues/2915

 

View solution in original post

2 Replies
JG
Novice
369 Views

I have tried with OpenMPI 3.0 and I have got the right result. Maybe this is just a bug in Intel MPI.

JG
Novice
370 Views

Turns out the problem was with OpenMPI, and Intel MPI was right. The MPI standard 3.1, chapter 13.3 says that the type used to set the view must be monotonically nondecreasing, which is not in my example.

Anyway it could be nice to have an MPI_Error when setting the view rather than a crash when writting to the file.

Where I've found the answer: https://github.com/pmodels/mpich/issues/2915

 

View solution in original post

Reply