mache.spack.get_modules_env_vars_and_mpi_compilers
- mache.spack.get_modules_env_vars_and_mpi_compilers(machine, compiler, mpi, shell, include_e3sm_lapack=False, include_e3sm_hdf5_netcdf=False, yaml_template=None)[source]
Get the non-spack modules, environment variables and compiler names for a given machine, compiler and MPI library.
- Parameters:
compiler (str) – One of the E3SM supported compilers for the
machine
mpi (str) – One of the E3SM supported MPI libraries for the given
compiler
andmachine
machine (str, optional) – The name of an E3SM supported machine. If none is given, the machine will be detected automatically via the host name.
shell ({'sh', 'csh'}) – Which shell the script is for
include_e3sm_lapack (bool, optional) – Whether to include the same lapack (typically from MKL) as used in E3SM
include_e3sm_hdf5_netcdf (bool, optional) – Whether to include the same hdf5, netcdf-c, netcdf-fortran and pnetcdf as used in E3SM
yaml_template (str, optional) – A jinja template for a yaml file to be used for the environment instead of the mache template. This allows you to use compilers and other modules that differ from E3SM.
- Returns:
mpicc (str) – The MPI c compiler for this machine
mpicxx (str) – The MPI c++ compiler for this machine
mpifc (str) – The MPI Fortran compiler for this machine
mod_env_commands (str) – Modules and environment variables needed to set up the compilers, MPI libraries and other dependencies like NetCDF and PNetCDF