LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Yeliang Zhang (zhang_at_[hidden])
Date: 2005-03-30 00:11:25


Hi,

I am testing my program under Lam MPI environment. I ended up debugging
a small portion of the code like:

      PROGRAM mytest
      include 'mpif.h'

      integer a,b,i,j, me
      integer ierror

      call MPI_init(ierror)
      call MPI_comm_rank(MPI_COMM_WORLD, me, ierror)
      print*, me
      call MPI_finalize(ierror)

      end program

This program runs fine under any directory other than my project
directory.

As long as it is run under my project directory, no matter the
executable is generated by simple mpif77 or make file, there will be
error:

[/home/zhang/hydrology/parallel] mpirun -np 4 a.out
MPI_Comm_rank: invalid communicator: Invalid argument (rank 0,
MPI_COMM_WORLD)
Rank (0, MPI_COMM_WORLD): Call stack within LAM:
Rank (0, MPI_COMM_WORLD): - MPI_Comm_rank()
Rank (0, MPI_COMM_WORLD): - main()
MPI_Comm_rank: invalid communicator: Invalid argument (rank 1,
MPI_COMM_WORLD)
Rank (1, MPI_COMM_WORLD): Call stack within LAM:
Rank (1, MPI_COMM_WORLD): - MPI_Comm_rank()
Rank (1, MPI_COMM_WORLD): - main()
MPI_Comm_rank: invalid communicator: Invalid argument (rank 2,
MPI_COMM_WORLD)
Rank (2, MPI_COMM_WORLD): Call stack within LAM:
Rank (2, MPI_COMM_WORLD): - MPI_Comm_rank()
Rank (2, MPI_COMM_WORLD): - main()
MPI_Comm_rank: invalid communicator: Invalid argument (rank 3,
MPI_COMM_WORLD)
Rank (3, MPI_COMM_WORLD): Call stack within LAM:
Rank (3, MPI_COMM_WORLD): - MPI_Comm_rank()
Rank (3, MPI_COMM_WORLD): - main()
-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit
code. This typically indicates that the process finished in error.
If your process did not finish in error, be sure to include a "return
0" or "exit(0)" in your C code before exiting the application.

PID 8326 failed on node n0 (127.0.0.1) with exit status 1.
-----------------------------------------------------------------------------
forrtl: error (78): process killed (SIGTERM)

I lamboot the MPI environment correctly. Do you guys have any
suggestion?

Thank you very much.

Zhang