opensuse 11.3 and openmpi

opensuse 11.3 has wrapper scripts for openmpi installed.

I tried

mpif90 test.f90

and got the following error

ian@linux-dihr:~/document/fortran/newbook/mpi/old_examples> mpif90 mpi_hello_world_01.f90 -o hw
/usr/lib64/gcc/x86_64-suse-linux/4.5/…/…/…/…/x86_64-suse-linux/bin/ld: cannot find -lmpi_f90
collect2: ld returned 1 exit status
ian@linux-dihr:~/document/fortran/newbook/mpi/old_examples> running mpif90 with the showme option is shown below

ian@linux-dihr:~/document/fortran/newbook/mpi/old_examples> mpif90 -showme:link
-pthread -I/usr/lib64/mpi/gcc/openmpi/lib64 -L/usr/lib64/mpi/gcc/openmpi/lib64 -lmpi_f90 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -Wl,–export-dynamic -lnsl -lutil -lm -ldl
ian@linux-dihr:~/document/fortran/newbook/mpi/old_examples>

and an ls shows

ian@linux-dihr:~/document/fortran/newbook/mpi/old_examples> ls -la /usr/lib64/mpi/gcc/openmpi/lib64
total 1928
drwxr-xr-x 2 root root 4096 2010-12-23 19:56 .
drwxr-xr-x 6 root root 4096 2010-12-23 19:56 …
lrwxrwxrwx 1 root root 25 2010-12-23 19:56 libmca_common_sm.so.0 → libmca_common_sm.so.0.0.0
-rwxr-xr-x 1 root root 10464 2010-07-05 12:58 libmca_common_sm.so.0.0.0
lrwxrwxrwx 1 root root 19 2010-12-23 19:56 libmpi_cxx.so.0 → libmpi_cxx.so.0.0.0
-rwxr-xr-x 1 root root 138976 2010-07-05 12:58 libmpi_cxx.so.0.0.0
lrwxrwxrwx 1 root root 19 2010-12-23 19:56 libmpi_f77.so.0 → libmpi_f77.so.0.0.0
-rwxr-xr-x 1 root root 229888 2010-07-05 12:58 libmpi_f77.so.0.0.0
lrwxrwxrwx 1 root root 19 2010-12-23 19:56 libmpi_f90.so.0 → libmpi_f90.so.0.0.0
-rwxr-xr-x 1 root root 18608 2010-07-05 12:57 libmpi_f90.so.0.0.0
lrwxrwxrwx 1 root root 15 2010-12-23 19:56 libmpi.so.0 → libmpi.so.0.0.0
-rwxr-xr-x 1 root root 615616 2010-07-05 12:58 libmpi.so.0.0.0
lrwxrwxrwx 1 root root 20 2010-12-23 19:56 libopen-pal.so.0 → libopen-pal.so.0.0.0
-rwxr-xr-x 1 root root 261384 2010-07-05 12:58 libopen-pal.so.0.0.0
lrwxrwxrwx 1 root root 20 2010-12-23 19:56 libopen-rte.so.0 → libopen-rte.so.0.0.0
-rwxr-xr-x 1 root root 385048 2010-07-05 12:58 libopen-rte.so.0.0.0
-rwxr-xr-x 1 root root 288209 2010-07-05 12:57 mpi.mod
ian@linux-dihr:~/document/fortran/newbook/mpi/old_examples>

is the install complete? or do i need to install anything else?

Thanks in advance

Ian Chivers

I have openmpi and openmpi-devel from the science repository installed where
there is no such error, maybe you want to use the same.

martinh@sirius:~/Projekte/scratch> rpm -q openmpi
openmpi-1.3.2-1.3.x86_64

Otherwise you can manually try to create symbolic links for
libmpi_f90.so -> libmpi_f90.so.0
and so on and check if that solves your problem.


openSUSE 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5 | GeForce
9600 GT | 4GB Ram
openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | KDE 4.5 | Quadro FX
3600M | 4GB Ram

Thanks Martin

It looks like the basic suse installation installs the ‘wrappers’
but that you need to then follow this with an install of

openmpi-devel

to get the rest installed. Thanks for taking the time to
have help.

cheers

Ian Chivers