On Jul 25, 2019, at 10:31 AM, Ewen Chan via users <users@lists.open-mpi.org> wrote: > > Here's my configuration: > > OS: CentOS 7.6.1810 x86_64 (it's a fresh install. I installed it last night.) > OpenMPI version: 1.10.7 (that was the version that was available in the > CentOS install repo) > path to mpirun: /usr/lib64/openmpi/bin > path to lib: /usr/lib64/openmpi/lib > > $ cat ~/.bashrc > PATH=$PATH > export PATH > LD_LIBRARY_PATH=$LD_LIBRARY_PATH > export LD_LIBRARY_PATH > > $ cat ~/.bash_profile > PATH=$PATH > export PATH > LD_LIBRARY_PATH=$LD_LIBRARY_PATH > export LD_LIBRARY_PATH > > $ cat ~/.profile > PATH=$PATH > export PATH > LD_LIBRARY_PATH=$LD_LIBRARY_PATH > export LD_LIBRARY_PATH
The commands in the 3 files, above, are not doing anything. You're assigning a variable to itself, without modifying anything. E.g, "PATH=$PATH" just sets the PATH variable to itself, so nothing changed. Did you mean to put the Open MPI installation paths in the right hand side of the assignment? E.g. (disclaimer: typed directly into email -- I haven't tested this): ----- PATH=$PATH:/usr/lib64/openmpi/bin export PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib export LD_LIBRARY_PATH ----- > $ cat /etc/profile > ... > PATH=$PATH:...:/usr/lib64/openmpi/bin > export PATH > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib > export LD_LIBRARY_PATH Aside from the extra "..." In there, those statements look correct. I don't know offhand if /etc/profile is executed or not for non-interactive logins or not. I suspect that if you fix the statements in $HOME/.bashrc and/or $HOME/.bash_profile, that might be good enough. The key is to make sure that PATH and LD_LIBRARY_PATH are set with the Open MPI paths for both interactive and non-interactive logins. You can test easily with: # Interactive localnode$ ssh othernode othernode$ env | grep PATH ...make sure it has the right paths in it... # Non-interactive: localnode$ ssh othernode env | grep PATH ...make sure it has the right paths in it... > command that I am trying to run that results in the error: > > SI8_premix_PFI_SAGE$ time -p mpirun -hostfile node003_16_node004_16.txt > /opt/converge_2.4.0/l_x86_64/bin/converge...ompi 2>&1 | tee run.log This means that mpirun is not in your PATH in your local machine. For simplicity, once you correct your .bashrc, logout and login again and see if the PATH is now set properly. Specifically: just editing your .bashrc does not modify your current environment. There are multiple ways to modify your current environment; a simple way is to just logout and login again, and see if your env was setup properly by your .bashrc. -- Jeff Squyres jsquy...@cisco.com _______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users