5. Build Parameters
5.1. Compiler & MPI
This defines the vendor and version of the compiler you wish to use for this build. The format is the same as what you would typically use in a module load command. For example,
HPC_COMPILER=intel/2020. Options include:
For information on setting compiler flags, see Section 7.1 Additional Notes.
The MPI library you wish to use for this build. The format is the same as for HPC_COMPILER; for example:
HPC_MPI=impi/2020. Current MPI types accepted are openmpi, mpich, impi, cray, and cray*. Options include:
For example, when using Intel-based compilers and Intel’s implementation of the MPI interface, the
config/config_custom.sh should contain the following specifications:
export SERIAL_CC=icc export SERIAL_FC=ifort export SERIAL_CXX=icpc export MPI_CC=mpiicc export MPI_FC=mpiifort export MPI_CXX=mpiicpc
This will set the C, Fortran, and C++ compilers and MPI’s.
To verify that your chosen MPI build (e.g., mpiicc) is based on the corresponding serial compiler (e.g., icc), use the
-show option to query the MPI’s. For example,
will display output like this:
$ icc -I<LONG_INCLUDE_PATH_FOR_MPI> -L<ANOTHER_MPI_LIBRARY_PATH> -L<ANOTHER_MPI_PATH> -<libraries, liners, build options...> -X<something> --<enable/disable/with some options> -l<library> -l<another_library> -l<yet-another-library>
The message you need from this prompt is “icc”, which confirms that your mpiicc build is based on icc. It may happen that if you query the “mpicc -show” on your system, it is based on “gcc” (or something else).
5.2. Other Parameters
The Python interpretor you wish to use for this build. The format is the same as for
HPC_COMPILER, for example:
If the directory where the software packages will be installed (
$PREFIX) requires root permission to write to, such as
/opt/modules, then this flag should be enabled. For example,
The stack allows the option to download the source code for all the software without performing the installation. This is especially useful for installing the stack on machines that do not allow internet connectivity to websites hosting the software (e.g., GitHub). For more information, see Section 7.4 Additional Notes.
To enable a boolean flag, use a single-digit
T. To disable, use
F (case insensitive).
is the directory where tarred or zipped software files will be downloaded and compiled. Unlike
$PREFIX, this is a relative path based on the root path of the repository. Individual software packages can be downloaded manually to this directory and untarred, but this is not required. Build scripts will look for the directory
The directory where log files from the build will be written, relative to the root path of the repository.
If set to
T, this flag will cause the build script to remove the current installation, if any exists, and replace it with the new version of each software package in question. If this variable is not set, the build will bypass software packages that are already installed.
The number of threads to use for parallel builds.
Run make check after build.
Print out extra information to the log files during the build.
Set the type of python environment to build. Value depends on whether using pip or conda. Set
VENVTYPE=pyvenvwhen using pip and
VENVTYPE=condaenvwhen using Miniconda for creating virtual environments. Default is