massive-website-banner

Modules

"Modules" is software installed on MASSIVE that provides an easy mechanism for updating your environment such as the PATH, MANPATH, and LD_LIBRARY_PATH environment variables, so that your environment uses the correct version of software and libraries installed on MASSIVE.

Available Modules

Modules uses preset configurations that are created when the software is installed. To see what configurations are available use the following command:

module avail

 

If you know what software you want you can also specifiy the software in the "avail" command:

module avail namd

 

The above will list all available modules in the form of / e.g:

------------------------ /usr/local/Modules/modulefiles ------------------------
namd/2.7-openmpi-gcc-cuda(default) namd/2.8b1-openmpi-gcc-cuda
namd/2.8-openmpi-intel-cuda namd/2.8b2-openmpi-gcc-cuda

 

Loading Modules

In the list above there is a default module for "namd" as well as other possible configurations. To install a default module use the "module load " command. e.g:

module load namd

 

To install a specific module version use the "module load /" command. e.g:

module load namd/2.8-openmpi-intel-cuda

 

Also the 'module initadd' command can be used to have a module automatically loaded each time you log into MASSIVE;

$ module initadd [modulename]

 

Listing and Unloading Modules

To see what modules you have loaded issue the "module list" command. e.g.:

module list

 To remove individual modules you can either issue:

module unload [modulefile]

or to remove all modules:

module purge

Module commands

Some basic module commands include the following, these commands may make changes to your current environment but those changes go away when you log off:

module avail This option lists all the modules which are available to be loaded. Notice that many of them have version numbers associated with them. Modules makes it easy to switch compiler application versions. The module name without a version number is the production default.
module help [modulefile] If a module looks interesting, to get more information use this command to display the `help' information contained within the given module file.
module list This lists all the modules which are currently loaded into the users environment.
module display [modulefile] Use this command to see exactly what a given modulefile will do to your environment, such as what will be added to the PATH, MANPATH, etc. environment variables.
module load [modulefile] his adds one or more modulefiles to the user's current environment. If you load the generic name of a module, you will get the default version. To load a specific version, load the module using its full specification, e.g., module load gcc/4.2.1
module unload [modulefile] This removes any listed modules from the user's current environment. The modules can be removed in any order.
module purge Removes all modules from environment

Copyright © 2016 MASSIVE. All Rights Reserved.