Modules en.

Z Komputery Dużej Mocy w ACK CYFRONET AGH
Skocz do:nawigacja, szukaj

Package description

Modules package provides easy and dynamic modification of shell variables adjusting it for the specific requirements of a given software package. For each ot the software packages available on the cluster there is corresponding module defined (or modules if more than one version of the package is available). Name of a module is built according to scheme program-name/version. For libraries the scheme is libs/library-name/version, and for tools (eg. programming languages such as R or Python) tools/library-name/version. For both software packages and libraries, the newest version is default, so the last part version can be omitted. Changes are made using module command and a parameter defining the action.

Procect site: http://modules.sourceforge.net/ Project documentation: http://modules.sourceforge.net/man/modulefile.html Other documentation: local modules' sources located in /software/local/Modules

Frequently used options:

  • module add <module> or module load <module> – load the program module
  • module rm <module> or module unload <module> – remove the program module
  • module list – show list of currently loaded modules
  • module avail – show list of all available modules
  • module avail <software_name> – show all versions of given software_name
  • module purge – remove all loaded modules
  • module show <module> or module display <module> – show information about given module
  • module switch <module-1> <module-2> – exchange modules in shell

Examples of use

  • Load the latest version of Intel compiler
module add intel
  • Load Intel compiler version 10.0
module add intel/10.0
  • List all available versions of Intel compilers
module avail intel
  • Exchange OpenMPI Ethernet version for the Infiniband version
module switch openmpi/1.4.3-intel-11.1-eth openmpi/1.4.3-intel-11.1-ib
  • Remove paths of the Intel compiler version 10.0 from the environment
module rm intel/10.0

Using your own modules (Advanced)

Modules package allows creating your own modules also. To do that you need to load first the module use.own. It will create library privatemodules in your home directory. In this directory all own modules should be placed. The modules program will automatically check new installed modules and add them to the available list. New modules can use TCL language functions. You can get more information about creating modules on the project site.