Exiting with a non-zero status is considered as indicating a failure that needs reporting.
On Sep 3, 2014, at 1:48 PM, Nico Schlömer <nico.schloe...@gmail.com> wrote: > Hi all, > > with OpenMPI 1.6.5 (default Debian/Ubuntu), I'm running the program > > ``` > #include <cstdlib> > #include <mpi.h> > > int main( int argc, char* argv[] ) > { > MPI_Init (&argc, &argv); > MPI_Finalize(); > return EXIT_FAILURE; > } > ``` > that unconditionally returns an error flag. When executing this, I'm > somewhat surprised to get > ``` > -------------------------------------------------------------------------- > mpiexec noticed that the job aborted, but has no info as to the process > that caused that situation. > -------------------------------------------------------------------------- > ``` > no matter with how many processes I run this. Returning EXIT_FAILURE > seems harmless enough. > Needless to say, this does not happen for EXIT_SUCCESS, or in serial > execution (without mpiexec). > > Is this expected behavior? Has this changed in later versions of OpenMPI? > > Cheers, > Nico > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2014/09/25251.php