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]$
|