Getting the package#
-
Change working directory to the location where you'll build the package. A convenient location is
/scratch/$USER
, which we'll use for this example.cd /scratch/$USER
-
OpenMPI can be found at https://www.open-mpi.org/software/ompi/. This will automatically redirect you to the latest version, but older releases can be seen in the left menu bar. For this, choose version 4.1.
-
There are several packaging options. Here, we'll get the bzipped tarball
openmpi-4.1.0.tar.bz2
. You can either download it to a local machine (laptop) and thenscp
the file over to the HPC cluster, or get it directly on the supercomputer usingwget
.You should now have a compressed tarball in your scratch directory.wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.0.tar.bz2
- List the contents of the tarball before unpacking.
This is very useful to avoid inadvertently filling a directory with gobs of files and directories when the tarball has them at the top of the file structure),
tar -tf openmpi-4.1.0.tar.bz2
- Unpack it via
If you're curious to see what's in the file as it unpacks, add the
tar -xjf openmpi-4.1.0.tar.bz2
-v
option. - You should now have an
openmpi-4.1.0
directory.cd openmpi-4.1.0
, at which point you are in the top level of the package distribution. You can now proceed to configuring, making, and installing.