After upgrade to TW, I get an mpi warning below in konsole terminal. It was not there on leap 15.6 prior to upgrade.
(base) tom@mydesktop: ~ $ source .bashrc
Warn: could not determine prefix for system-openmpi
(base) tom@mydesktop: ~ $
mpi-select shows:
(base) tom@mydesktop: ~ $ mpi-selector --list
mpich
mvapich2
openmpi4
openmpi5
(base) tom@mydesktop: ~ $
In bashrc I have had, for a very long time:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/mpi/gcc/openmpi/lib64/:/usr/lib64
Is this causing any loss of mpi where needed? Would like to get ride of message.
thanks, tom kosvic
Is this a valid directory?
yes,
(base) tom@mydesktop: ~ $ cd /usr/lib64/mpi/gcc/openmpi/lib64/
(base) tom@mydesktop: /usr/lib64/mpi/gcc/openmpi/lib64 $ l
total 12
drwxr-xr-x 3 root root 4096 Mar 31 06:04 ./
drwxr-xr-x 3 root root 4096 Mar 31 05:20 ../
drwxr-xr-x 2 root root 4096 Mar 31 05:20 openmpi/
(base) tom@mydesktop: /usr/lib64/mpi/gcc/openmpi/lib64 $ l openmpi
total 8
drwxr-xr-x 2 root root 4096 Mar 31 05:20 ./
drwxr-xr-x 3 root root 4096 Mar 31 06:04 ../
(base) tom@mydesktop: /usr/lib64/mpi/gcc/openmpi/lib64 $
Is this wrong directory structure for mpi? If so been wrong for a while
Solved issue of openmpi warning.
openmpi org docs say openmpi needs path to “orterun”.
A locate function found it. I added it to path in .bashrc as below:
export OMPI_HOME=/usr/lib64/mpi/gcc/openmpi4/bin/
export PATH=$OMPI_HOME:$PATH
After sourcing new bash, the warning has gone away. As I said this did not happen in leap 15.6 prior to upgrade to tumbleweed so TW must have some mpi related files in a different location than leap.
Now I will find something to run that will show whether openmpi is actually working. Perhaps an openfoam cfd run.
tom kosvic