We use “Environment Modules” to keep the environment clean. For application software, a corresponding module must be loaded before using the software. The module will set all paths and environment variables necessary to use the software. Environment Modules are simple to use.
Modules are only available on an interactive node. Attempting to load modules on the login node will not work.
To launch an interactive job:
[johnchris@andromeda ~]$ interactive
Executing: srun --pty -N1 -n1 -c4 --mem=8g -p interactive -t0-04:00:00 /bin/bash
Press any key to continue or ctrl+c to abort.
For example, to use the software called Matlab, first load the Matlab module by typing:
[johnchris@andromeda ~]$ module load matlab
There are some basic commands:
- List all currently available modules:
module avail
- List all modules currently loaded:
module list
- Add or load one or more modulefile:
module load modulefile
- Unload modulefile:
module unload modulefile
- Replace mod1 with mod2:
module switch mod1 mod2
There should be no need for a user to manually set a path to run application software that is available to all users of the system.
For example:
[johnchris@andromeda ~]$ module load stata
[johnchris@andromeda ~]$ which stata-se
-se
/m31/modules/stata/19/stata