4.1. Quick start: Installing Open MPI
Although this section skips many details, it offers examples that will probably work in many environments.
Note that this section is a “Quick start” — it does not attempt to be comprehensive or describe how to build Open MPI in all supported environments. The examples below may therefore not work exactly as shown in your environment.
Please consult the other sections in this chapter for more details, if necessary.
If you have checked out a developer’s copy of Open MPI (i.e., you cloned from Git), you really need to read the Developer’s Guide before attempting to build Open MPI. Really.
Open MPI uses a traditional
configure script paired with
to build. Typical installs can be of the pattern:
shell$ tar xf openmpi-<version>.tar.bz2 shell$ cd openmpi-<version> shell$ ./configure --prefix=<path> [...options...] 2>&1 | tee config.out <... lots of output ...> # Use an integer value of N for parallel builds shell$ make [-j N] all 2>&1 | tee make.out # ...lots of output... # Depending on the <prefix> chosen above, you may need root access # for the following: shell$ make install 2>&1 | tee install.out # ...lots of output...
Note that VPATH builds are fully supported. For example:
shell$ tar xf openmpi-<version>.tar.bz2 shell$ cd openmpi-<version> shell$ mkdir build shell$ cd build shell$ ../configure --prefix=<path> 2>&1 | tee config.out # ...etc.
The above patterns can be used in many environments.
Note that there are many, many configuration options available in the
./configure step. Some of them may be needed for your particular
HPC network interconnect type and/or computing environment; see the
rest of this chapter for descriptions of the available options.