Finding Software

Environment Modules

NeSI uses environment modules to manage installed software.

Using the module command you can:

  • View loaded modules:
    module list
    
  • List all available modules
    module avail
    
  • Load a module:
    module load Python/2.7.14-gimkl-2017a
    
  • Switch out a loaded module for a different version:
    module switch Python/2.7.14-gimkl-2017a Python/3.6.3-gimkl-2017a
    

Lmod on Mahuika

As on Pan, Mahuika uses an enhanced version of modules called Lmod .

Lmod extends the basic environment modules by adding simple shortcuts and a more powerful search capability. The ml shortcut can be used in place of module. With Lmod you can:

  • View loaded modules:
    ml
    
  • List all available modules:
    ml spider
    
  • Use “spider” to search for modules, e.g. “Python” modules:
    ml spider Python
    
  • Load a module:
    ml Python/2.7.14-gimkl-2017a
    
  • Prefix a module with “-“ to unload it, e.g. switch from Python 2 to Python 3:
    ml -Python/2.7.14-gimkl-2017a Python/3.6.3-gimkl-2017a
    
  • To get a fresh environment, we recommend that you log out and log in again. By logging out and logging in again you will revert to not only the default set of modules, but also the default set of environment variables.

Further information can be found in the online User Guide for Lmod.

Modules on Māui

On Māui and Māui_Ancil we use top level modules to provide the different software stacks. Per default the "NeSI" module is loaded, which provides access to the different NeSI software stacks.

On Māui XC nodes an improved version of the modules framework is provided. Therewith you can also search for modules using a sub-string using the "-S" option, e.g.

module avail -S netcdf

as a result you will also find modules having the substring "netcdf" in name, e.g. cray-netcdf.

NOTE: The substring search will be soon implemented by default, then you do not need to specify the -S anymore. Furthermore, this improvement should be also ported to the Māui_Ancil part.

 

NOTE: you can create your own modules. This is described here.

Was this article helpful?
0 out of 0 found this helpful