Nicolas Joly
2017-01-18 15:36:51 UTC
Hi,
We have a tool where all workers will use MPI_File_write_shared() on a
file that was opened with MPI_MODE_APPEND, mostly because rank 0 will
have written some format specific header data.
We recently upgraded our openmpi version from v1.10.4 to v2.0.1. And
at that time we noticed a behaviour change ... ompio do not show the
same result as romio with the attached code.
***@tars-submit0 [tmp/mpiio]> mpirun --version
mpirun (Open MPI) 2.0.1
[...]
***@tars-submit0 [tmp/mpiio]> mpirun -n 1 --mca io romio314 ./openappend
***@tars-submit0 [tmp/mpiio]> echo $?
0
***@tars-submit0 [tmp/mpiio]> cat openappend.test
Header line
Data line
***@tars-submit0 [tmp/mpiio]> mpirun -n 1 --mca io ompio ./openappend
***@tars-submit0 [tmp/mpiio]> echo $?
0
***@tars-submit0 [tmp/mpiio]> cat openappend.test
Data line
e
With ompio, it seems that, for some reason, the shared file pointer
was reset/initialised(?) to zero ... leading to an unexpected write
position for the "Data line" buffer.
Thanks in advance.
Regards.
We have a tool where all workers will use MPI_File_write_shared() on a
file that was opened with MPI_MODE_APPEND, mostly because rank 0 will
have written some format specific header data.
We recently upgraded our openmpi version from v1.10.4 to v2.0.1. And
at that time we noticed a behaviour change ... ompio do not show the
same result as romio with the attached code.
***@tars-submit0 [tmp/mpiio]> mpirun --version
mpirun (Open MPI) 2.0.1
[...]
***@tars-submit0 [tmp/mpiio]> mpirun -n 1 --mca io romio314 ./openappend
***@tars-submit0 [tmp/mpiio]> echo $?
0
***@tars-submit0 [tmp/mpiio]> cat openappend.test
Header line
Data line
***@tars-submit0 [tmp/mpiio]> mpirun -n 1 --mca io ompio ./openappend
***@tars-submit0 [tmp/mpiio]> echo $?
0
***@tars-submit0 [tmp/mpiio]> cat openappend.test
Data line
e
With ompio, it seems that, for some reason, the shared file pointer
was reset/initialised(?) to zero ... leading to an unexpected write
position for the "Data line" buffer.
Thanks in advance.
Regards.
--
Nicolas Joly
Cluster & Computing Group
Biology IT Center
Institut Pasteur, Paris.
Nicolas Joly
Cluster & Computing Group
Biology IT Center
Institut Pasteur, Paris.