Skip to content
Snippets Groups Projects
Commit b52f78c1 authored by Simon May's avatar Simon May
Browse files

Only load modules once per session in .bashrc

parent 65c76051
No related branches found
No related tags found
No related merge requests found
...@@ -2,31 +2,36 @@ ...@@ -2,31 +2,36 @@
# in /etc/profile, i.e. *before* ~/.profile! # in /etc/profile, i.e. *before* ~/.profile!
. ~/.env . ~/.env
# setup modules # setup modules; only execute once to prevent re-loading impi after loading gcc
# hierarchical module system: compiler → mpi → libraries if [ -z "$_MODULES_LOADED" ]; then
# Modules fftw-mpi and hdf5-mpi become available after loading a compiler module # set variable to mark modules as loaded
# and an MPI library (impi). The available modules are determined by the _MODULES_LOADED=1
# compiler/MPI combination that was loaded (i.e. in this case, fftw-mpi is the export _MODULES_LOADED
# version compiled with intel and impi). # hierarchical module system: compiler → mpi → libraries
# Currently, loading both compiler modules (gcc and intel) causes problems with the # Modules fftw-mpi and hdf5-mpi become available after loading a compiler module
# MODULEPATH that is set up by impi, so make sure to load another compiler only # and an MPI library (impi). The available modules are determined by the
# *after* impi is loaded! # compiler/MPI combination that was loaded (i.e. in this case, fftw-mpi is the
module load intel # version compiled with intel and impi).
module load impi # Currently, loading both compiler modules (gcc and intel) causes problems with
module load fftw-mpi # the MODULEPATH that is set up by impi, so make sure to load another compiler
module load hdf5-serial # only *after* impi is loaded!
module load gsl module load intel
module load pkg-config module load impi
module load gcc # load *after* intel and impi! module load fftw-mpi
module load clang module load hdf5-serial
module load datashare module load gsl
module load git module load pkg-config
#module load mathematica # only available on login nodes module load gcc # load *after* intel and impi!
#module load idl # only available on login nodes module load clang
module load anaconda module load datashare
module load julia module load git
module load gnuplot #module load mathematica # only available on login nodes
module load p7zip #module load idl # only available on login nodes
module load anaconda
module load julia
module load gnuplot
module load p7zip
fi
# if running interactively: set MPI variables; else stop # if running interactively: set MPI variables; else stop
# see https://www.mpcdf.mpg.de/services/computing/linux/Astrophysics # see https://www.mpcdf.mpg.de/services/computing/linux/Astrophysics
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment