2.3. Compiling

Typically, you need to use a module command to get access to a compiler and MPI library. This could be, for example:

module load intel intelmpi      # check "module avail" for module names
... or ...
module load gcc openmpi         # check also compiler versions available

To compile, go to one of the expriments/ directories, and use make info to see macro names and values that would be used in make. If the automatically selected make options shown are OK, just do::

make -j

If MPI is not available, add MPI= to the make command, and if the (gfortran) compiler chosen by default is not appropriate add for example COMPILER=ifx. See also the Linux environment and Local configurations sections.

As a general case example:

make COMPILER=ifx CPU=avx2 OPTS=optimized MPI= -j