Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Gurhan Ozen (gurhan.ozen_at_[hidden])
Date: 2007-01-02 15:21:26


On 1/2/07, Gurhan Ozen <gurhan.ozen_at_[hidden]> wrote:
> On 1/2/07, jcolmenares_at_[hidden] <jcolmenares_at_[hidden]> wrote:
> > > First you should make sure that PATH and LD_LIBRARY_PATH are defined
> > > in the section of your .bashrc file that get parsed for non
> > > interactive sessions. Run "mpirun -np 1 printenv" and check if PATH
> > > and LD_LIBRARY_PATH have the values you expect.
> >
> > in fact they do:
> >
> > bernie_at_bernie-1:~/proyecto$ mpirun -np 1 printenv
> > SHELL=/bin/bash
> > SSH_CLIENT=192.168.1.142 4109 22
> > USER=bernie
> > LD_LIBRARY_PATH=/usr/local/openmpi/lib:/usr/local/openmpi/lib:
> > MAIL=/var/mail/bernie
> > PATH=/usr/local/openmpi/bin:/usr/local/openmpi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
> > PWD=/home/bernie
> > LANG=en_US.UTF-8
> > HISTCONTROL=ignoredups
> > SHLVL=1
> > HOME=/home/bernie
> > MPI_DIR=/usr/local/openmpi
> > LOGNAME=bernie
> > SSH_CONNECTION=192.168.1.142 4109 192.168.1.113 22
> > LESSOPEN=| /usr/bin/lesspipe %s
> > LESSCLOSE=/usr/bin/lesspipe %s %s
> > _=/usr/local/openmpi/bin/orted
> > OMPI_MCA_universe=bernie_at_bernie-1:default-universe
> > OMPI_MCA_ns_nds=env
> > OMPI_MCA_ns_nds_vpid_start=0
> > OMPI_MCA_ns_nds_num_procs=1
> > OMPI_MCA_mpi_paffinity_processor=0
> > OMPI_MCA_ns_replica_uri=0.0.0;tcp://192.168.1.142:4775
> > OMPI_MCA_gpr_replica_uri=0.0.0;tcp://192.168.1.142:4775
> > OMPI_MCA_orte_base_nodename=192.168.1.113
> > OMPI_MCA_ns_nds_cellid=0
> > OMPI_MCA_ns_nds_jobid=1
> > OMPI_MCA_ns_nds_vpid=0
> >
> >
> > > For your second question you should give the path to your prueba.bin
> > > executable. I'll do something like "mpirun --prefix /usr/local/
> > > openmpi -np 2 ./prueba.bin". The reason is that usually "." is not in
> > > the PATH.
> > >
> >
> > bernie_at_bernie-1:~/proyecto$ mpirun --prefix /usr/local/openmpi -np 2
> > ./prueba.bin
> > --------------------------------------------------------------------------
> > Failed to find or execute the following executable:
> >
> > Host: bernie-3
> > Executable: ./prueba.bin
> >
> > Cannot continue.
> > --------------------------------------------------------------------------
> >
> > and the file IS there:
> >
> > bernie_at_bernie-1:~/proyecto$ ls prueba*
> > prueba.bin prueba.f90 prueba.f90~
> >

    Wait a minute.. you are running mpirun from bernie-1 without
proving any hostfile or hostnames .. So both processes should be
running on bernie-1 host, yet the error says it can't find the
executable on bernie-3. Why is this? Make sure that the file exists on
bernie-3 and is executable.

   gurhan

> >
> > I must be missing something pretty silly, but have been looking around for
> > days to no avail!
> >
>
> What are the permissions on the file? Is it an executable file?
>
> gurhan
>
> > Jose
> >
> > thanks
> >
> >
> > _______________________________________________
> > users mailing list
> > users_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
> >
>