By default, all users on CRAY XC40 (by default) have access to the the Cray programming environment (PrgEnv-cray), MPI Libraries (cray-mpich) and Mathematical/Linear algebra library (cray-libsci includes BLAS, LAPACK and ScaLAPACK) when logged in their account.
command | comments |
module list | Show list of already loaded modules |
module avail | //Show list of available dynamically loadable modules |
module show [module name] | //this shows the environment paths for given module |
module load [module name] | //to load a specified module to current environment |
module unload [module name] | //to unload a specified module to current environment |
module help [module name] | //to help about required module |
module swap [loaded module name] [new module name] | //By default the Cray programming environment is loaded. If you want to change this and load Intel programming environment you will need to unload the Cray programming environment module and then load the Intel programming environment module. This can be achieved by swapping. In this example, swap Prg-Env-cray (default) with that of Intel programming environment module. |
Examples -
For running CPU based jobs load the following module
module load craype-broadwell | //compiling for CPU nodes |
For running accelerator based jobs (Xeon Phi) load the following modules
module load craype-mic-knl | //compiling for Phi nodes(native mode) |
Note:
If you want to switch from one processor type to another, first unload the already loaded processor module then load the needed processor module.