[OMPI users] Bug in my code or in v1.4.3?

2014-01-10 Thread David Froger
Dear all, We are migrating a code using OpenMPI from Ubuntu 10.04 to Ubuntu 12.04, and encouter some problems. Bellow is a test code that work on Ubuntu 10.04, but fails on Ubuntu 12.04 The question is: is there a bug in the test code, or is it due to a bug in OpenMPI? Thanks for any help, Davi

Re: [OMPI users] Bug in my code or in v1.4.3?

2014-01-10 Thread David Froger
Thanks for the reply. > The test code looks ok to me. Ok! > I will mention that Open MPI 1.4.3 is *very* old; it is now 2 generations > behind the current. The current stable release is 1.6.5, and the current > feature series (1.7.x) is likely to transition to stable (1.8.x) in a few > month

Re: [OMPI users] Wrong values when reading file with MPI IO

2016-04-07 Thread David Froger
You're right, thanks a lot Edgar! Quoting Edgar Gabriel (2016-04-07 23:18:46) > I found the bug in your code. The displacement of the file view has to > be given in absolute bytes, not in multiples of etypes. > ---snip--- > The disp displacement argument specifies the position (absolute offset

[OMPI users] Wrong values when reading file with MPI IO

2016-04-07 Thread david . froger . ml
Hello, Here is a simple `C` program reading a file in parallel with `MPI IO`: #include #include #include "mpi.h" #define N 10 main( int argc, char **argv ) { int rank, size; MPI_Init(&argc, &argv); MPI_Comm_rank( MPI_COMM_WORLD, &rank );

Re: [OMPI users] Wrong values when reading file with MPI IO

2016-04-07 Thread david . froger . ml
What version of Open MPI did you execute your test with? mpirun (Open MPI) 1.8.6