CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

openmpi and "executable not found"

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 31, 2010, 13:30
Default openmpi and "executable not found"
New Member
Benedikt Goeppner
Join Date: Jan 2010
Posts: 15
Rep Power: 9
bgoeppner is on a distinguished road
Hi everybody,

I was trying to use OpenFOAM with openmpi, but got some problemes I cannot solve by myself...

That's the situation:
  • I've got several computers connected by a server, all computers have installed openldap for user-authentification and mount centralized home-directories via nfs.
  • OpenFOAM is installed in my home-directory like suggested in official installation tutorial.
  • I can run openfoam-applications on each of those computers no matter if I log in via desktop or ssh, no problem here.The .bashrc seems to be set correctly therefore.
  • I can run openfoam-applications via mpirun if I stay local (using multiple cores on one computer, without --hostfile or --host parameter) Openmpi seems to be installed correctly therefore.
  • I can run openmpi on multiple computers, say mpirun -np 2 --host localhost,remotehost uptime.
  • Running mpirun -np 2 --host localhost,remotehost echo $SHELL returns /bin/bash on all nodes.
  • Running mpirun -np 2 --host localhost,remotehost echo $PATH returns the same path-environment for both computers.
But if I try to run an openfoam-application via mpirun on a remote computers, I'm getting an "executable not found" error... How can that be? The executable is found if I'm logging in interactivly, and path is set correct even if I log in via mpirun...

Any suggestion would be great, I'm really frustrated right now...

Thanks and have a nice Easter Weekend,
bgoeppner is offline   Reply With Quote

Old   April 1, 2010, 07:51
Default Missing environment variables?
New Member
Christian Kröner
Join Date: Nov 2009
Location: Bonn
Posts: 7
Rep Power: 10
ckroener is on a distinguished road

i think you need to export the necessary environment variables to the remote nodes:

The man pages of mpirun says:

-x <env> Export the specified environment variables to the remote
nodes before executing the program.

I do not know if it is necessary, but i need to specify the following environment variables:

mpirun -x PATH -x LD_LIBRARY_PATH -x WM_PROJECT_INST_DIR -x WM_PROJECT_DIR -x MPI_BUFFER_SIZE --host host1,host2 interFoam -parallel

ckroener is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 16:36.