I have been trying to resolve problems to be able to run openmpi on multiple nodes.
Initially I had a problem with $PATH
and $LD_LIBRARY_PATH
v
maybe you should run like this.I guess. two ways help you!
first:
mpirun --prefix /home/usama/.openmpi --hostfile hosts -np 4 . ~/.bashrc && bash script
second:
## 1. add this line to the script
. ~/.bashrc
## 2. run command as you do
mpirun --prefix /home/usama/.openmpi --hostfile hosts -np 4 bash script