Wayne State University

AIM HIGHER

Wayne State University

High Performance Computing Services

MODULES

HOW TO LOAD MODULES

Follow these steps to load modules for applications on the Grid.

Logon on to the Grid.

Start an interaction job. Example:

qsub -I -q wsuq

Input: qsub -I -q wsuq

You have been assigned to a node. Load a module (modules are found in the /wsu/apps/modules directory) with the load command. Example:

module load

Input: module load

You can check which modules are available by pressing tab twice.

Available modules

To see modules for a particular compiler you can use the autofill feature, for example by typing "module load mva" and then hitting the tab key once...

Input: module load mva

...it will autofill to "module load mvapich2-2.0/".

Input: module load mvapich2-2.0/

By hitting tab twice more it will provide autofill choices for the mvapich compiler:

mvapich2 2.0 compiler list

In thise tutorial we will actually load the Intel compilers module. Example:

module load intel-14.0.2/compiler

Input: module load intel-14.0.2/compiler

You can check the path of the executables included in this module. Example:

which icc

Input: which icc

The path is displayed.

Output: /wsu/apps/compilers/intel/composter_xe_2013_sp1.2.144/bin/intel64/icc

You can switch between modules with the switch command. You must list the current module and then the one you are switching to. Example:

module switch intel-14.0.2/compiler gnu-4.7.0/compiler

Input: module switch intel-14.0.2/compiler gnu-4.7.0/compiler

You can unload modules using the unload command. Ex:

module unload gnu-4.7.0/compiler

Input: module unload gnu-4.7.0/compiler

We can echo the path of a module another way as well. Ex:

module load /wsu/apps/compilers/gnu-4.4.7-amber12

Input: module load /wsu/apps/compilers/gnu-4.4.7-amber12

To see the path, type:

echo $AMBERHOME

Input: echo $AMBERHOME

The path is shown.

Output: /wsu/apps/gnu-4.4.7/amber/amber12

Here are some other things to keep in mind in regards to modules.

Modules for software that is pre-compiled, or that has been compiled with gnu-4.4.7 will be identified as just the name of the software and version numbers.

Modules for software that has been compiled with GPU compilers will be found in the respective GPU compiler directory. Example:

  • cuda-5.5
  • cuda-6.0

Modules for the GPU compilers will be named compiler-gpu and will be found in their respective directories. Example:

  • cuda-5.5/compiler-gpu
  • cuda-6.0/compiler-gpu

Modules for software that has been compiled with MPI compilers will be found in the respective MPI compiler directory. Example:

  • mvapich2-2.0
  • pgi-14.6

Modules for the MPI compilers will be named compiler-mpi and will be found in their respective directories. Example:

  • mvapich2-2.0/compiler-mpi
  • pgi-14.6/compiler-mpi

Modules for software that has been compiled with any other compilers will be found in the respective compiler directory. Example:

  • gnu-4.7.0
  • intel-14.0.2
  • pgi-12.10
  • pgi-12.6
  • pgi-14.6

Modules for the compilers will be named compiler and will be found in their respective directories. Example:

  • gnu-4.7.0/compiler
  • intel-14.0.2/compiler
  • pgi-12.10/compiler
  • pgi-12.6/compiler
  • pgi-14.6/compiler
Computer Center Services * 5925 Woodward Avenue Detroit, Michigan 48202