Hi --
You are getting the correct output. LAM does not provide a way of getting
exit status back after an MPI_Finalize(). The exit statuses are of
relevance only if the program terminated before MPI_Finalize(). The "-sa"
option of mpirun would list exit statuses of all processes run with
mpirun, irrespective of whether they failed or completed with success, but
the scope of success/failure is from MPI_Init() to MPI_Finalize() only.
Hope this helps...
-Vishal
On Mon, 20 Sep 2004, Drake, Richard R wrote:
# Hi,
#
# This program returns a zero exit status:
#
# #include "mpi.h"
# int main(int argc, char* argv[])
# {
# MPI_Init(&argc, &argv);
# MPI_Finalize();
# return 1;
# }
#
# Here is the output:
#
# sahp5531% which mpirun
# /pr/alegra/mpi/lam7.0.2_gnu3.2_ip/bin/mpirun
# sahp5531% mpirun -np 1 -sa `pwd`/a.out
# mpirun: n0 23221 0 0
#
#
# What am I doing wrong? According to the documentation, it should return 1.
#
# This is LAM/MPI version 7.0.2 running on a RedHat 9 system:
#
# sahp5531% uname -a
# Linux sahp5531 2.4.20-28.9psycho #1 SMP Wed Feb 18 07:08:55 MST 2004 i686
# i686 i386 GNU/Linux
#
#
# Any help appreciated.
#
# -rich
#
# _______________________________________________
# This list is archived at http://www.lam-mpi.org/MailArchives/lam/
#
|