LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Mike Roberts (window59_at_[hidden])
Date: 2007-09-29 00:38:50


I can start octave without mpirun, but when I try:
[marin][~/octave/mpitb/Hello]> octave -q --eval Hello
I get:
Minimal test:
        MPI_Init, [a b]=MPI_Initialized, MPI_Finalize, [a b]=MPI_Finalized
    Examples of environment variables to affect MPI behaviour
        LAM/MPI SSI iface: putenv('LAM_MPI_SSI_rpi', 'lamd'), MPI_Init
        OpenMPI MCA iface: putenv('OMPI_MCA_btl_base_debug','2'), MPI_Init
    Help on MPI: help mpi
Help(this demo): help Hello
-----------------------------------------------------------------------------
It seems that at least one rank invoked some MPI function before
invoking MPI_INIT. The only information that I can give is that it
was PID 27255 on host marin.
-----------------------------------------------------------------------------

So, Hello just fails
I had already run a command to load the lam module. Then I loaded a file that has the command:
localhost cpu=3
I did this using: lamboot filename
Interesting thing, when I run the command "lamnodes", I get:
n0 localhost:3:origin,this_node
I would expect other nodes, but just this.
The output I get when I run: mpirun -np 2 octave -q --eval Hello
is:
MPI: marin: 0x132c0000464b9eb5: octave: Command not found.
MPI: could not run executable (case #4)
Killed
I had to put -np instead of -c. with -c I just get:
MPI: bad process count
 
It was mentioned that maybe the architecture is not good. The system I am running it on is an Itanium2 SGI Altix 4700.
Any ideas?

-Mike

> Date: Fri, 28 Sep 2007 19:23:13 +0200
> From: javier_at_[hidden]
> To: lam_at_[hidden]
> Subject: Re: LAM: Running Octave Programs with MPI
>
> lam-request_at_[hidden] wrote:
> > On Sep 28, 2007, at 12:56 AM, Mike Roberts wrote:
> >> [...] the Hello World example. Mpitb says to run it using the
> >> command: mpirun -c 2 octave -q --eval Hello.
> >> mpirun does not seem to like to run an application through Octave
> >> however. It gives an error saying that octave is not an executable
> >> (it is looking to run a file directly). I also used a simple
> >> expression like: mpirun -np 2 octave Hello. This did not work
> >> either. Any ideas?
> >
> > Can you run octave without the mpirun part? This usually means that
> > the command you are trying to run either can't properly execute on the
> > current architecture or is not found in your path.
> >
> > Hope this helps,
> >
> > Brian
> >
>
> Hi Brian,
> thanks for suggesting that test to Mike.
>
> Hi, Mike,
> this is a log of how Brian's test works in my system:
> > [javier_at_xxx Hello]$ lamnodes
> > n0 xxx01.ugr.es:1:origin,this_node
> > n1 xxx02.ugr.es:1:
> > n2 xxx03.ugr.es:1:
> > [javier_at_xxx Hello]$ octave -v
> > GNU Octave, version 2.9.12
> > [...]
> > Octave was configured for "i686-pc-linux-gnu".
> > [...].
> > [javier_at_xxx Hello]$ octave -q --eval Hello
> > Minimal test:
> > MPI_Init, [a b]=MPI_Initialized, MPI_Finalize, [a b]=MPI_Finalized
> > Examples of environment variables to affect MPI behaviour
> > LAM/MPI SSI iface: putenv('LAM_MPI_SSI_rpi', 'lamd'), MPI_Init
> > OpenMPI MCA iface: putenv('OMPI_MCA_btl_base_debug','2'), MPI_Init
> > Help on MPI: help mpi
> > Help(this demo): help Hello
> > Hello, MPI_COMM_world! I'm rank 0/1 (xxx)
> >
> > [javier_at_xxx Hello]$ mpirun -c 2 octave -q --eval Hello
> > Hello, MPI_COMM_world! I'm rank 0/2 (xxx.ugr.es)
> > Hello, MPI_COMM_world! I'm rank 1/2 (xxx02.atc.ugr.es)
> >
> > [javier_at_xxx Hello]$ mpirun -c 3 octave -q --eval Hello
> > Hello, MPI_COMM_world! I'm rank 0/3 (xxx.ugr.es)
> > Hello, MPI_COMM_world! I'm rank 1/3 (xxx02.ugr.es)
> > Hello, MPI_COMM_world! I'm rank 2/3 (xxx03.ugr.es)
> >
> > [javier_at_xxx Hello]$
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us