Many thanks for the input.

When I look for mpirun:

brant.abbott@rust:~$ whereis mpirun
mpirun: /usr/bin/mpirun.openmpi /usr/bin/mpirun /usr/bin/X11/mpirun.openmpi
/usr                                                    /bin/X11/mpirun
/usr/share/man/man1/mpirun.1.gz

If I use mpirun.openmpi everything works as normal. I suppose mpirun is
executing the MPICH version. I'm not entirely sure why when logged in a
root it behaves differently, but good enough for me to just use the
alternative command.

On Thu, Oct 15, 2015 at 1:54 PM, Jeff Squyres (jsquyres) <jsquy...@cisco.com
> wrote:

> I think you're accidentally using MPICH, not Open MPI.  Specifically,
> those are error messages from MPICH.
>
> Check your paths to ensure that mpif90 / mpirun / etc. are all the ones
> that you think you're executing.  And then double check your
> LD_LIBRARY_PATH to ensure that libmpi is the library that you think it
> should be.
>
>
> > On Oct 15, 2015, at 1:19 PM, Brant Abbott <abbottbr...@gmail.com> wrote:
> >
> > Hi,
> >
> > I've installed openmpi on a workstation running Ubuntu 14.04.3 LTS.
> >
> > Logged in as root I can compile using mpif90 and run the programs using
> mpirun. Logged in as a regular user I can compile using mpif90, but cannot
> run the programs using mpirun (or mpiexec). The error messages are:
> >
> > brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ mpif90
> hello_usempi.f90 -o mainmpi
> > brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ mpirun -np 2
> mainmpi
> > /opt/intel/composer_xe_2013.2.146/mpirt/bin/intel64/mpirun: 96: .: Can't
> open /opt/intel/composer_xe_2013.2.146/mpirt/bin/intel64/mpivars.sh
> > brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ mpiexec -np 2
> mainmpi
> > mpiexec_rust: cannot connect to local mpd
> (/tmp/mpd2.console_brant.abbott); possible causes:
> >   1. no mpd is running on this host
> >   2. an mpd is running but was started without a "console" (-n option)
> >
> >
> > However logged in as root:
> >
> > brant.abbott@rust:~/Downloads/openmpi-1.10.0/examples$ su
> > Password:
> > root@rust:/home/brant.abbott/Downloads/openmpi-1.10.0/examples# mpirun
> -np 4 mainmpi
> > Hello, world, I am  1 of  4:
> > Hello, world, I am  2 of  4:
> > Hello, world, I am  0 of  4:
> > Hello, world, I am  3 of  4:
> > root@rust:/home/brant.abbott/Downloads/openmpi-1.10.0/examples# mpiexec
> -np 4 mainmpi
> > Hello, world, I am  0 of  4:
> > Hello, world, I am  1 of  4:
> > Hello, world, I am  2 of  4:
> > Hello, world, I am  3 of  4:
> > root@rust:/home/brant.abbott/Downloads/openmpi-1.10.0/examples#
> >
> >
> > I saw this thread:
> >
> > http://www.open-mpi.org/community/lists/users/2010/03/12291.php
> >
> > and tried reinstalling using
> >
> > ./configure --prefix=/usr/local --disable-pty-support
> >
> > at the appropriate step. However, I still have the problem.
> >
> > Does anyone know the solution?
> >
> > Many Thanks!
> > _______________________________________________
> > users mailing list
> > us...@open-mpi.org
> > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> > Link to this post:
> http://www.open-mpi.org/community/lists/users/2015/10/27872.php
>
>
> --
> Jeff Squyres
> jsquy...@cisco.com
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post:
> http://www.open-mpi.org/community/lists/users/2015/10/27874.php
>

Reply via email to