Install openmpi from scratch

There are probably like 400 blogs with this procedure written. But this is miiiiiineeeee 😀

1. Download openmpi version
2. untar & mv to destination
3. configure –prefix=/pat
4. make all install

tar -xvzf openmpi-1.8.1.tar.gz
 mv openmpi-1.8.1 /usr/lib64/
 ./configure --prefix=/usr/lib64/openmpi-1.8.1

A selected output reads like this:

== Configuring Open MPI
*** Startup tests
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu

checking if want to build OSHMEM fortran bindings... yes
checking if want wrapper compiler rpath support... yes
== Compiler and preprocessor tests
*** C compiler and preprocessor
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes

checking if building Fortran 'use mpi' bindings... yes
checking if building Fortran 'use mpi_f08' bindings... no
== Header file tests
checking alloca.h usability... yes
checking alloca.h presence... yes

checking for stdbool.h... yes
checking if <stdbool.h> works... yes
== Type tests
checking size of pid_t... 4
checking for socklen_t... yes
checking for struct sockaddr_in... (cached) yes

checking for struct statvfs.f_basetype... no
checking for struct statvfs.f_fstypename... no
== Library and Function tests
checking if we need -lutil for openpty... yes
checking for openpty... yes

checking whether __va_copy is declared... yes
checking whether __func__ is declared... yes
== System-specific tests
checking checking for type of MPI_Offset... long long
checking checking for an MPI datatype for MPI_Offset... MPI_LONG_LONG

checking whether RLIMIT_STACK is declared... yes
checking whether RLIMIT_AS is declared... yes
== Modular Component Architecture (MCA) setup
checking for subdir args... '--prefix=/usr/lib64/openmpi-1.8.1'
checking --with-verbs value... simple ok (unspecified)

*** Configuring ROMIO distribution
configure: OMPI configuring in ompi/mca/io/romio/romio
configure: running /bin/sh './configure' FROM_OMPI=yes CC="
== Extended MPI interfaces setup
checking for available MPI Extensions... affinity, cr
checking which MPI extension should be enabled...

--- MPI Extension affinity
checking if MPI Extension affinity can compile... no

--- MPI Extension cr
checking if MPI Extension cr can compile... no

== Contributed software setup
*** Configuring contributed software packages
checking which contributed software packages should be disabled... 

--- libompitrace (m4 configuration macro)
checking if contributed component libompitrace can compile... yes
== Symbol visibility feature
checking if gcc -std=gnu99 supports -fvisibility=hidden... yes
checking whether to enable symbol visibility... yes 
\(via -fvisibility=hidden)
== Final top-level OMPI configuration
*** Libtool configuration
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed

*** Final output
checking that generated files are newer than configure... done
configure: creating ./config.status

config.status: executing opal/mca/event/
libevent2021/libevent/include/event2/event-config.h commands
config.status: executing libtool commands

Now we type make all install and ready to go!

You should be able now to run your own openmpi  🙂


About bitsanddragons

A traveller, an IT professional and a casual writer
This entry was posted in bits. Bookmark the permalink.

2 Responses to Install openmpi from scratch

  1. Pingback: Install openmpi-2.1.0 on Centos 7 | Bits and Dragons

  2. Pingback: Install openmpi-3.0.0 with UCX and infiniband support on CentOS 7 | Bits and Dragons

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s