You install openmpi as root, and run executable with perm of root on user. Don't you think something wrong? (hint: when you root mpirun work) Try install openmpi for user. Also, you use ubuntu - binary based distro, you can use apt-get to install openmpi:
sudo apt-get install libopenmpi-dev openmpi-bin openmpi-doc 2015-10-15 20:19 GMT+03:00 Brant Abbott <abbottbr...@gmail.com>: > 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 > -- -- С уважением.