Binary package hint: openmpi-bin
On Ubuntu 7.04, mpicc from the openmpi-bin package works and produces the normal lines to compile a C program that uses MPI:
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=7.04 DISTRIB_CODENAME=feisty DISTRIB_DESCRIPTION="Ubuntu 7.04" $ dpkg -l | grep openmpi ii openmpi-bin 1.1-2.3 high performance message passing library ii openmpi-common 1.1-2.3 high performance message passing library ii openmpi-dev 1.1-2.3 high performance message passing library ii openmpi-libs0 1.1-2.3 high performance message passing library $ mpicc -showme gcc -I/usr/include/openmpi -pthread -lmpi -lorte -lopal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl $ mpicc -showme:compile -I/usr/include/openmpi -pthread $ mpicc -showme:link -pthread -lmpi -lorte -lopal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl $ ls hello* hello.c $ mpicc -Wall -O2 hello.c -o hello $ ls hello* hello hello.c
However on Ubuntu 7.10 RC, the mpicc command produces no output and will not build a MPI C program:
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=7.10 DISTRIB_CODENAME=gutsy DISTRIB_DESCRIPTION="Ubuntu 7.10" $ dpkg -l | grep openmpi ii openmpi-bin 1.1-2.5 high performance message passing library ii openmpi-common 1.1-2.5 high performance message passing library ii openmpi-dev 1.1-2.5 high performance message passing library ii openmpi-libs0 1.1-2.5 high performance message passing library $ mpicc -showme $ mpicc -showme:compile $ mpicc -showme:link $ ls hello* hello.c $ mpicc -Wall -O2 hello.c -o hello $ ls hello* hello.c
Binary package hint: openmpi-bin
On Ubuntu 7.04, mpicc from the openmpi-bin package works and produces the normal lines to compile a C program that uses MPI:
$ cat /etc/lsb-release RELEASE= 7.04 CODENAME= feisty DESCRIPTION= "Ubuntu 7.04" include/ openmpi -pthread -lmpi -lorte -lopal -ldl -Wl,--export- dynamic -lnsl -lutil -lm -ldl include/ openmpi -pthread dynamic -lnsl -lutil -lm -ldl
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ dpkg -l | grep openmpi
ii openmpi-bin 1.1-2.3 high performance message passing library
ii openmpi-common 1.1-2.3 high performance message passing library
ii openmpi-dev 1.1-2.3 high performance message passing library
ii openmpi-libs0 1.1-2.3 high performance message passing library
$ mpicc -showme
gcc -I/usr/
$ mpicc -showme:compile
-I/usr/
$ mpicc -showme:link
-pthread -lmpi -lorte -lopal -ldl -Wl,--export-
$ ls hello*
hello.c
$ mpicc -Wall -O2 hello.c -o hello
$ ls hello*
hello hello.c
However on Ubuntu 7.10 RC, the mpicc command produces no output and will not build a MPI C program:
$ cat /etc/lsb-release RELEASE= 7.10 CODENAME= gutsy DESCRIPTION= "Ubuntu 7.10"
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ dpkg -l | grep openmpi
ii openmpi-bin 1.1-2.5 high performance message passing library
ii openmpi-common 1.1-2.5 high performance message passing library
ii openmpi-dev 1.1-2.5 high performance message passing library
ii openmpi-libs0 1.1-2.5 high performance message passing library
$ mpicc -showme
$ mpicc -showme:compile
$ mpicc -showme:link
$ ls hello*
hello.c
$ mpicc -Wall -O2 hello.c -o hello
$ ls hello*
hello.c