Intel® oneAPI HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
1921 Discussions

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

JG
Novice
527 Views
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
527 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
527 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
528 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

 

Reply