Accessing software via Modules
Overview
Teaching: 15 min
Exercises: 5 minQuestions
How do we load and unload software packages?
Objectives
Load and use a software package.
Explain how the shell environment changes when the module mechanism loads or unloads packages.
On a high-performance computing system, it is seldom the case that the software we want to use is available when we log in. It is installed, but we will need to “load” it before it can run.
Before we start using individual software packages, however, we should understand the reasoning behind this approach. The three biggest factors are:
- software incompatibilities
- versioning
- dependencies
Software incompatibility is a major headache for programmers. Sometimes the
presence (or absence) of a software package will break others that depend on
it. Two of the most famous examples are Python 2 and 3 and C compiler versions.
Python 3 famously provides a python
command that conflicts with that provided
by Python 2. Software compiled against a newer version of the C libraries and
then used when they are not present will result in a nasty 'GLIBCXX_3.4.20'
not found
error, for instance.
Software versioning is another common issue. A team might depend on a certain package version for their research project - if the software version was to change (for instance, if a package was updated), it might affect their results. Having access to multiple software versions allows a set of researchers to prevent software versioning issues from affecting their results.
Dependencies are where a particular software package (or even a particular version) depends on having access to another software package (or even a particular version of another software package). For example, the VASP materials science software may depend on having a particular version of the FFTW (Fastest Fourier Transform in the West) software library available for it to work.
Environment
Before understanding environment modules we first need to understand what is meant by environment.
The environment is defined by it’s environment variables.
Environment Variables are writable named-variables.
We can assign a variable named “FOO” with the value “bar” using the syntax.
[yourUsername@mahuika ~]$ FOO="bar"
Convention is to name fixed variables in all caps.
Our new variable can be referenced using $FOO
, you could also use ${FOO}
,
enclosing a variable in curly brackets is good practice as it avoids possible ambiguity.
[yourUsername@mahuika ~]$ $FOO
-bash: bar: command not found
We got an error here because the variable is evalued in the terminal then executed. If we just want to print the variable we can use the command,
[yourUsername@mahuika ~]$ echo $FOO
bar
We can get a full list of environment variables using the command,
[yourUsername@mahuika ~]$ env
[removed some lines for clarity]
EBROOTTCL=/opt/nesi/CS400_centos7_bdw/Tcl/8.6.10-GCCcore-9.2.0
CPUARCH_STRING=bdw
TERM=xterm-256color
SHELL=/bin/bash
EBROOTGCCCORE=/opt/nesi/CS400_centos7_bdw/GCCcore/9.2.0
EBDEVELFREETYPE=/opt/nesi/CS400_centos7_bdw/freetype/2.10.1-GCCcore-9.2.0/easybuild/freetype-2.10.1-GCCcore-9.2.0-easybuild-devel
HISTSIZE=10000
XALT_EXECUTABLE_TRACKING=yes
MODULEPATH_ROOT=/usr/share/modulefiles
LMOD_SYSTEM_DEFAULT_MODULES=NeSI
SSH_CLIENT=192.168.94.65 45946 22
EBDEVELMETIS=/opt/nesi/CS400_centos7_bdw/METIS/5.1.0-GCCcore-9.2.0/easybuild/METIS-5.1.0-GCCcore-9.2.0-easybuild-devel
XALT_DIR=/opt/nesi/CS400_centos7_bdw/XALT/current
LMOD_PACKAGE_PATH=/opt/nesi/share/etc/lmod
These variables control many aspects of how your terminal, and any software launched from your terminal works.
Environment Modules
Environment modules are the solution to these problems. A module is a self-contained description of a software package – it contains the settings required to run a software package and, usually, encodes required dependencies on other software packages.
There are a number of different environment module implementations commonly
used on HPC systems: the two most common are TCL modules and Lmod. Both of
these use similar syntax and the concepts are the same so learning to use one
will allow you to use whichever is installed on the system you are using. In
both implementations the module
command is used to interact with environment
modules. An additional subcommand is usually added to the command to specify
what you want to do. For a list of subcommands you can use module -h
or
module help
. As for all commands, you can access the full help on the man
pages with man module
.
Purging Modules
Depending on how you are accessing the HPC the modules you have loaded by default will be different. So before we start listing our modules we will first use the module purge
command to clear all but the minimum default modules so that we are all starting with the same modules.
[yourUsername@mahuika ~]$ module purge
The following modules were not unloaded:
(Use "module --force purge" to unload all):
1) XALT/minimal 2) slurm 3) NeSI
Note that module purge
is informative. It lets us know that all but a minimal default
set of packages have been unloaded (and how to actually unload these if we
truly so desired).
We are able to unload individual modules, unfortunately within the NeSI system it does not always unload it’s dependencies, therefore we recommend module purge
to bring you back to a state where only those modules needed to perform your normal work on the cluster.
module purge
is a useful tool for ensuring repeatable research by guaranteeing that the environment that you build your software stack from is always the same. This is important since some modules have the potential to silently effect your results if they are loaded (or not loaded).
Listing Available Modules
To see available software modules, use module avail
:
[yourUsername@mahuika ~]$ module avail
-----------------/opt/nesi/CS400_centos7_bdw/modules/all ------------------
Flye/2.9-gimkl-2020a-Python-3.8.2 (D) PyQt/5.10.1-gimkl-2018b-Python-3.7.3
fmlrc/1.0.0-GCC-9.2.0 PyQt/5.12.1-gimkl-2018b-Python-2.7.16
fmt/7.1.3-GCCcore-9.2.0 PyQt/5.12.1-gimkl-2020a-Python-3.8.2 (D)
fmt/8.0.1 (D) pyspoa/0.0.8-gimkl-2018b-Python-3.8.1
fontconfig/2.12.1-gimkl-2017a Python-Geo/2.7.14-gimkl-2017a
fontconfig/2.13.1-GCCcore-7.4.0 Python-Geo/2.7.16-gimkl-2018b
fontconfig/2.13.1-GCCcore-9.2.0 (D) Python-Geo/3.6.3-gimkl-2017a
forge/19.0 Python-Geo/3.7.3-gimkl-2018b
forge/20.0.2 (D) Python-Geo/3.8.2-gimkl-2020a
FoX/4.1.2-intel-2018b Python-Geo/3.9.5-gimkl-2020a (D)
FragGeneScan/1.31-gimkl-2018b Python-GPU/3.6.3-gimkl-2017a
FreeBayes/1.1.0-gimkl-2017a Python/2.7.14-gimkl-2017a
FreeBayes/1.3.1-GCC-7.4.0 Python/2.7.16-gimkl-2018b
FreeBayes/1.3.2-GCC-9.2.0 (D) Python/2.7.16-intel-2018b
freetype/2.7.1-gimkl-2017a Python/2.7.18-gimkl-2020a
freetype/2.9.1-GCCcore-7.4.0 Python/3.6.3-gimkl-2017a
freetype/2.10.1-GCCcore-9.2.0 (D) Python/3.7.3-gimkl-2018b
FreeXL/1.0.2-gimkl-2017a Python/3.8.1-gimkl-2018b
FreeXL/1.0.5-GCCcore-7.4.0 (D) Python/3.8.2-gimkl-2020a (D)
FreeXL/1.0.5-GCCcore-9.2.0 Python/3.9.5-gimkl-2020a
FriBidi/1.0.10-GCCcore-9.2.0 qcat/1.1.0-gimkl-2020a-Python-3.8.2
[removed most of the output here for clarity]
----------------------------------- /cm/local/modulefiles -----------------------------------
cluster-tools/8.0 freeipmi/1.5.5 module-git openmpi/mlnx/gcc/64/2.1.2a1
cmd gcc/6.3.0 module-info shared
cuda-dcgm/1.3.3.1 ipmitool/1.8.18 null
dot lua/5.3.4 openldap
Where:
D: Default Module
Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the
"keys".
Listing Currently Loaded Modules
You can use the module list
command to see which modules you currently have
loaded in your environment. On mahuika you will have a few default modules loaded when you login.
[yourUsername@mahuika ~]$ module list
Currently Loaded Modules:
1) XALT/minimal 2) slurm 3) NeSI (S)
Loading and Unloading Software
You can load software using the module load
command. In this example we will be using the programming language R.
Initially, R is not loaded. We can test this by using the which
command. which
looks for programs the same way that Bash does, so we can use
it to tell us where a particular piece of software is stored.
[yourUsername@mahuika ~]$ which R
/usr/bin/which: no R in (/opt/nesi/CS400_centos7_bdw/XALT/current/bin:/opt/nesi/CS400_centos7_bdw/Python/3.10.5-gimkl-2022a/bin:/opt/nesi/CS400_centos7_bdw/OpenSSL/1.1.1k-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/Tk/8.6.10-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/Tcl/8.6.10-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/SQLite/3.36.0-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/netCDF/4.8.1-gimpi-2022a/bin:/opt/nesi/CS400_centos7_bdw/cURL/7.83.1-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/libxslt/1.1.34-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/libxml2/2.9.10-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/ncurses/6.2-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/libjpeg-turbo/2.1.3-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/HDF5/1.12.2-gimpi-2022a/bin:/opt/nesi/CS400_centos7_bdw/freetype/2.11.1-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/libpng/1.6.37-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/XZ/5.2.5-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/bzip2/1.0.8-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/impi/2021.5.1-GCC-11.3.0/mpi/2021.5.1/libfabric/bin:/opt/nesi/CS400_centos7_bdw/impi/2021.5.1-GCC-11.3.0/mpi/2021.5.1/bin:/opt/nesi/CS400_centos7_bdw/UCX/1.12.1-GCC-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/numactl/2.0.14-GCC-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/binutils/2.38-GCCcore-11.3.0/bin:/opt/nesi/CS400_centos7_bdw/GCCcore/11.3.0/bin:/opt/slurm/sbin:/opt/slurm/bin:/opt/nesi/share/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin)
The important bit here being:
/usr/bin/which: no R in (...)
Now lets try loading the R environment module, and try again.
[yourUsername@mahuika ~]$ module load R
[yourUsername@mahuika ~]$ which R
/opt/nesi/CS400_centos7_bdw/R/4.2.1-gimkl-2022a/bin/R
Tab Completion
The module command also supports tab completion. You may find this the easiest way to find the right software.
So, what just happened?
To understand the output, first we need to understand the nature of the $PATH
environment variable. $PATH
is a special environment variable that controls
where a UNIX system looks for software. Specifically $PATH
is a list of
directories (separated by :
) that the OS searches through for a command
before giving up and telling us it can’t find it. As with all environment
variables we can print it out using echo
.
[yourUsername@mahuika ~]$ echo $PATH
/opt/nesi/CS400_centos7_bdw/XALT/current/bin:/opt/nesi/CS400_centos7_bdw/Python/3.8.2-gimkl-2020a/bin:/opt/nesi/CS400_centos7_bdw/Tk/8.6.10-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/Tcl/8.6.10-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/SuiteSparse/5.6.0-gimkl-2020a-METIS-5.1.0/bin:/opt/nesi/CS400_centos7_bdw/METIS/5.1.0-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/SQLite/3.31.1-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/netCDF/4.7.3-gimpi-2020a/bin:/opt/nesi/CS400_centos7_bdw/PCRE/8.43-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/cURL/7.64.0-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/libxslt/1.1.34-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/libxml2/2.9.10-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/ncurses/6.1-GCCcore-9.2.0/bin:/opt/nesi/mahuika/libjpeg-turbo/2.0.2-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/HDF5/1.10.5-gimpi-2020a/bin:/opt/nesi/CS400_centos7_bdw/freetype/2.10.1-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/libpng/1.6.37-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/XZ/5.2.4-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/bzip2/1.0.8-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/impi/2019.6.166-GCC-9.2.0/intel64/libfabric/bin:/opt/nesi/CS400_centos7_bdw/impi/2019.6.166-GCC-9.2.0/intel64/bin:/opt/nesi/CS400_centos7_bdw/binutils/2.32-GCCcore-9.2.0/bin:/opt/nesi/CS400_centos7_bdw/GCCcore/9.2.0/bin:/home/harrellw/bin:/home/harrellw/.local/bin:/home/harrellw/apps/bin:/usr/lpp/mmfs/bin:/opt/slurm/sbin:/opt/slurm/bin:/opt/nesi/share/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/nesi/bin:/opt/ibutils/bin
We can improve the readability of this command slightly by replacing the colon delimiters (:
) with newline (\n
) characters.
[yourUsername@mahuika ~]$ echo $PATH | tr ":" "\n"
/opt/nesi/CS400_centos7_bdw/XALT/current/bin
/opt/nesi/CS400_centos7_bdw/R/4.2.1-gimkl-2022a/bin
/opt/nesi/CS400_centos7_bdw/nodejs/16.15.1-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/Java/17
/opt/nesi/CS400_centos7_bdw/Java/17/bin
/opt/nesi/CS400_centos7_bdw/PCRE2/10.40-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/Python/3.10.5-gimkl-2022a/bin
/opt/nesi/CS400_centos7_bdw/OpenSSL/1.1.1k-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/Tk/8.6.10-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/Tcl/8.6.10-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/SQLite/3.36.0-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/netCDF/4.8.1-gimpi-2022a/bin
/opt/nesi/CS400_centos7_bdw/cURL/7.83.1-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/libxslt/1.1.34-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/libxml2/2.9.10-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/ncurses/6.2-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/libjpeg-turbo/2.1.3-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/HDF5/1.12.2-gimpi-2022a/bin
/opt/nesi/CS400_centos7_bdw/freetype/2.11.1-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/libpng/1.6.37-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/XZ/5.2.5-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/bzip2/1.0.8-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/impi/2021.5.1-GCC-11.3.0/mpi/2021.5.1/libfabric/bin
/opt/nesi/CS400_centos7_bdw/impi/2021.5.1-GCC-11.3.0/mpi/2021.5.1/bin
/opt/nesi/CS400_centos7_bdw/UCX/1.12.1-GCC-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/numactl/2.0.14-GCC-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/binutils/2.38-GCCcore-11.3.0/bin
/opt/nesi/CS400_centos7_bdw/GCCcore/11.3.0/bin
/opt/slurm/sbin
/opt/slurm/bin
/opt/nesi/share/bin
/usr/local/bin
/usr/bin
/usr/local/sbin
/usr/sbin
/opt/ibutils/bin
/opt/nesi/vdt
/opt/nesi/bin
You’ll notice a similarity to the output of the which
command. However, in this case,
there are a lot more directories at the beginning. When we
ran the module load
command, it added many directories to the beginning of our
$PATH
.
The path to NeSI XALT utility will normally show up first. This helps us track software usage, but the more important directory is the second one: /opt/nesi/CS400_centos7_bdw/R/4.2.1-gimkl-2022a/bin
Let’s examine what’s there:
[yourUsername@mahuika ~]$ ls /opt/nesi/CS400_centos7_bdw/R/4.2.1-gimkl-2022a/bin
R Rscript
module load
“loads” not only the specified software, but it also loads software dependencies. That is, the software that the application you load requires to run.
To demonstrate, let’s use module list
.
[yourUsername@mahuika ~]$ module list
Currently Loaded Modules:
1) XALT/minimal 8) GCC/11.3.0 15) gimpi/2022a 22) libreadline/8.1-GCCcore 29) Java/17
2) slurm 9) libpmi/2-slurm 16) imkl-FFTW/2022.0.2-gimpi-2022a 23) libpng/1.6.37-GCCcore 30) nodejs/16.15.1-GCCcore-11.3.0
3) NeSI (S) 10) numactl/2.0.14-GCC-11.3.0 17) gimkl/2022a 24) libxml2/2.9.10-GCCcore-11.3.0 31) OpenSSL/1.1.1k-GCCcore-11.3.0
4) LegacySystemLibs/7 11) UCX/1.12.1-GCC-11.3.0 18) bzip2/1.0.8-GCCcore-11.3.0 25) SQLite/3.36.0-GCCcore-11.3.0 32) R/4.2.1-gimkl-2022a
5) GCCcore/11.3.0 12) impi/2021.5.1-GCC-11.3.0 19) XZ/5.2.5-GCCcore-11.3.0 26) cURL/7.83.1-GCCcore-11.3.0
6) zlib/1.2.11-GCCcore-11.3.0 13) AlwaysIntelMKL/1.0 20) PCRE2/10.40-GCCcore-11.3.0 27) NLopt/2.7.0-GCC-11.3.0
7) binutils/2.38-GCCcore-11.3.0 14) imkl/2022.0.2 21) ncurses/6.2-GCCcore-11.3.0 28) GMP/6.2.1-GCCcore-11.3.0
Notice that our initial list of modules has increased by 30. When we loaded R, it also loaded all of it’s dependencies along with all the dependencies of those modules.
Before moving onto the next session lets use module purge
again to return to the minimal environment.
[yourUsername@mahuika ~]$ module purge
The following modules were not unloaded:
(Use "module --force purge" to unload all):
1) XALT/minimal 2) slurm 3) NeSI
Software Versioning
So far, we’ve learned how to load and unload software packages. However, we have not yet addressed the issue of software versioning. At some point or other, you will run into issues where only one particular version of some software will be suitable. Perhaps a key bugfix only happened in a certain version, or version X broke compatibility with a file format you use. In either of these example cases, it helps to be very specific about what software is loaded.
Let’s examine the output of module avail
more closely.
[yourUsername@mahuika ~]$ module avail
-----------------/opt/nesi/CS400_centos7_bdw/modules/all ------------------
Flye/2.9-gimkl-2020a-Python-3.8.2 (D) PyQt/5.10.1-gimkl-2018b-Python-3.7.3
fmlrc/1.0.0-GCC-9.2.0 PyQt/5.12.1-gimkl-2018b-Python-2.7.16
fmt/7.1.3-GCCcore-9.2.0 PyQt/5.12.1-gimkl-2020a-Python-3.8.2 (D)
fmt/8.0.1 (D) pyspoa/0.0.8-gimkl-2018b-Python-3.8.1
fontconfig/2.12.1-gimkl-2017a Python-Geo/2.7.14-gimkl-2017a
fontconfig/2.13.1-GCCcore-7.4.0 Python-Geo/2.7.16-gimkl-2018b
fontconfig/2.13.1-GCCcore-9.2.0 (D) Python-Geo/3.6.3-gimkl-2017a
forge/19.0 Python-Geo/3.7.3-gimkl-2018b
forge/20.0.2 (D) Python-Geo/3.8.2-gimkl-2020a
FoX/4.1.2-intel-2018b Python-Geo/3.9.5-gimkl-2020a (D)
FragGeneScan/1.31-gimkl-2018b Python-GPU/3.6.3-gimkl-2017a
FreeBayes/1.1.0-gimkl-2017a Python/2.7.14-gimkl-2017a
FreeBayes/1.3.1-GCC-7.4.0 Python/2.7.16-gimkl-2018b
FreeBayes/1.3.2-GCC-9.2.0 (D) Python/2.7.16-intel-2018b
freetype/2.7.1-gimkl-2017a Python/2.7.18-gimkl-2020a
freetype/2.9.1-GCCcore-7.4.0 Python/3.6.3-gimkl-2017a
freetype/2.10.1-GCCcore-9.2.0 (D) Python/3.7.3-gimkl-2018b
FreeXL/1.0.2-gimkl-2017a Python/3.8.1-gimkl-2018b
FreeXL/1.0.5-GCCcore-7.4.0 (D) Python/3.8.2-gimkl-2020a (D)
FreeXL/1.0.5-GCCcore-9.2.0 Python/3.9.5-gimkl-2020a
FriBidi/1.0.10-GCCcore-9.2.0 qcat/1.1.0-gimkl-2020a-Python-3.8.2
[removed most of the output here for clarity]
----------------------------------- /cm/local/modulefiles -----------------------------------
cluster-tools/8.0 freeipmi/1.5.5 module-git openmpi/mlnx/gcc/64/2.1.2a1
cmd gcc/6.3.0 module-info shared
cuda-dcgm/1.3.3.1 ipmitool/1.8.18 null
dot lua/5.3.4 openldap
Where:
D: Default Module
Use "module spider" to find all possible modules.
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the
"keys".
Let’s take a closer look at the Python
modules. There are many applications
that are run using python and may fail to run if the wrong version is loaded.
In this case, there are many different versions: Python/3.6.3-gimkl-2017a
,
Python/3.7.3-gimkl-2018b
through to the newest versions.
How do we load each copy and which copy is the default?
In this case, Python/3.8.2-gimkl-2020a
has a (D)
next to it. This indicates that it is the
default — if we type module load Python
, as we did above, this is the copy that will be
loaded.
[yourUsername@mahuika ~]$ module load Python
[yourUsername@mahuika ~]$ python3 --version
Python 3.8.2
So how do we load the non-default copy of a software package? In this case, the
only change we need to make is be more specific about the module we are
loading. There are many other Python versions. To load a
non-default module, the only change we need to make to our module load
command is to add the version number after the /
.
[yourUsername@mahuika ~]$ module load Python/3.9.5-gimkl-2020a
The following have been reloaded with a version change:
1) Python/3.8.2-gimkl-2020a => Python/3.9.5-gimkl-2020a
Notice how the module command has swapped out versions of the Python module. And now we test which version we are using:
[yourUsername@mahuika ~]$ python3 --version
Python 3.9.5
We are now left with only those module required to do our work for this project.
[yourUsername@mahuika ~]$ module list
1) XALT/minimal 20) HDF5/1.10.5-gimpi-2020a
2) slurm 21) libjpeg-turbo/2.0.2-GCCcore-9.2.0
3) NeSI (S) 22) ncurses/6.1-GCCcore-9.2.0
4) craype-broadwell 23) libreadline/8.0-GCCcore-9.2.0
5) craype-network-infiniband 24) libxml2/2.9.10-GCCcore-9.2.0
6) GCCcore/9.2.0 25) libxslt/1.1.34-GCCcore-9.2.0
7) zlib/1.2.11-GCCcore-9.2.0 26) cURL/7.64.0-GCCcore-9.2.0
8) binutils/2.32-GCCcore-9.2.0 27) PCRE/8.43-GCCcore-9.2.0
9) GCC/9.2.0 28) netCDF/4.7.3-gimpi-2020a
10) libpmi 29) SQLite/3.31.1-GCCcore-9.2.0
11) impi/2019.6.166-GCC-9.2.0 30) METIS/5.1.0-GCCcore-9.2.0
12) gimpi/2020a 31) tbb/2019_U9-GCCcore-9.2.0
13) imkl/2020.0.166-gimpi-2020a 32) SuiteSparse/5.6.0-gimkl-2020a-METIS-5.1.0
14) gimkl/2020a 33) Tcl/8.6.10-GCCcore-9.2.0
15) bzip2/1.0.8-GCCcore-9.2.0 34) Tk/8.6.10-GCCcore-9.2.0
16) XZ/5.2.4-GCCcore-9.2.0 35) LLVM/10.0.1-GCCcore-9.2.0
17) libpng/1.6.37-GCCcore-9.2.0 36) OpenSSL/1.1.1k-GCCcore-9.2.0
18) freetype/2.10.1-GCCcore-9.2.0 37) Python/3.9.5-gimkl-2020a
19) Szip/2.1.1-GCCcore-9.2.0
Key Points
Load software with
module load softwareName
.Unload software with
module unload
The module system handles software versioning and package conflicts for you automatically.