Module system

From Tycho
Jump to navigation Jump to search

Tycho makes use of the Module system to manage dependencies and load common compilers and software.

Environment modules modify the users environment via modulefiles. They are typically used to manage different versions of applications, by e.g. modifying the PATH system variable, using one module file per application version.

To ensure consistency, we recommend that you put relevant module commands in a file (e.g. ~/.modules), and source it from relevant startup files. Note that, even if you use tcsh as login shell, your batch jobs may use bash, so be sure to add "source ~/.modules" to ~/.bashrc in all cases. If you do this there is no need to put source statements in your job scripts.

Useful Commands

When you first log in, it is encouraged to write

module load astro

to your source $HOME/.bashrc. This will let you have access to all the available software.

If you want to see what software can you load, you can run

module avail

To check what software have you currently loaded, check

module list

To load a particular module, for example, the intel compilers, you can run

module load intel

or if you want a specific version

module load intel/20.1

To unload a loaded module do

module unload "modulename"

To switch to a different version, for example, from intel/20.1 to intel/18.0.3, do

module switch intel/20.1 intel/18.0.3 

You can find more documentation by checking the manual pages

man module

in this link, or in this other link