Changes between Initial Version and Version 1 of cypress/ModuleCommand


Ignore:
Timestamp:
05/14/15 11:42:44 (9 years ago)
Author:
cmaggio
Comment:

migrated content from ccs wiki. NOTE: CONTENT STILL NEEDS UPDATING TO REFLECT CONFIGURATION OF CYPRESS

Legend:

Unmodified
Added
Removed
Modified
  • cypress/ModuleCommand

    v1 v1  
     1= Program:module =
     2
     3''module'' is a utility used to manage multiple compilers on a single system, as well as set environment variables for other programs and utilities.
     4
     5=== Available Modules ===
     6The following command will list all available modules. Modules with names containing ''pgi, gnu, intel'' were built with those compilers respectively.
     7{{{
     8[tulaneID@cypress1 ~]$ module avail
     9
     10-------------------------------------------------------- /cm/local/modulefiles --------------------------------------------------------
     11cluster-tools/7.0                 ipmitool/1.8.13                   openldap
     12cmd                               module-git                        openmpi/gcc/64/1.8.2-mlnx-ofed2
     13dot                               module-info                       shared
     14freeipmi/1.3.4                    mvapich2/gcc/64/2.0rc1-mlnx-ofed2 use.own
     15intel/mic/sdk/3.3                 null                              version
     16
     17------------------------------------------------------- /cm/shared/modulefiles --------------------------------------------------------
     18default-environment           fftw3/openmpi/open64/64/3.3.3 slurm/14.03.0
     19fftw3/openmpi/gcc/64/3.3.3    gcc/4.8.2                     tulane/intel-psxe/2015
     20
     21------------------------------------------------------- /share/apps/modulefiles -------------------------------------------------------
     22anaconda/2.1.0          gaussian09/d.01         metis/5.1.0             novoalign/3.02.11-mpich samtools/1.1
     23boost/1.57.0            gcc/4.7.4               mosaik/2.2.3            openmpi/1.8.4           star/2.4.0i
     24bowtie/1.1.1            hdf5/1.8.14             mpich/3.1.4             parmetis/4.0.3          sundials/2.5.0
     25bowtie2/2.2.4           hdf5-parallel/1.8.14    ncbi-blast/2.2.30+      petsc/3.4.5             tinker/7.1.2
     26cmake/3.0.2             idev                    netcdf/4.3.2            petsc/3.5.2             tophat/2.0.13
     27diamond/0.6.12          intel-psxe/2015-update1 netcdf-cxx4/4.2.1       petsc/3.5.3             vtk/6.1.0
     28eigen/3.2.4             matlab/r2013b           netcdf-fortran/4.4.1    R/3.1.2
     29emacs/24.4              matlab/r2015a           novoalign/3.02.11       rsem/1.2.19
     30}}}
     31
     32=== Loading & Unloading Modules ===
     33This will load the Intel Parallel Studio XE which contains the Intel compiler suite:
     34
     35{{{[tulaneID@cypress1 ~]$ module load intel-psxe}}}
     36
     37To unload the same package:
     38
     39{{{[tulaneID@cypress1 ~]$ module unload intel-psxe}}}
     40
     41=== Listing Loaded Modules ===
     42{{{
     43[tulaneID@cypress1 ~]$ module load intel-psxe
     44[tulaneID@cypress1 ~]$ module list
     45Currently Loaded Modulefiles:
     46  1) slurm/14.03.0             2) idev                      3) intel-psxe/2015-update1
     47}}}
     48
     49
     50=== using $HOME/.modulerc ===
     51This file can be used to load or to define your own environment during each login. An example looks like this:
     52
     53{{{
     54#%Module1.0
     55module load matlab/R2013a
     56}}}
     57
     58A .modulerc begins with the magic cookie, '#%Module'. A version number may be placed after this string. The current version is 1.0.
     59
     60If you want to set .modulerc to work for both "sphynx" and "ares", it is better to set like:
     61
     62{{{
     63#%Module1.0
     64if { $HOSTNAME == "sphynx.ccs.tulane.edu" } {
     65 module load intel/12.1
     66 module load openmpi-intel-ib/1.6
     67 module load matlab/R2013a
     68}
     69if { $HOSTNAME == "login-02-01" } {
     70 module load intel/12.0
     71 module load openmpi-intel-ib/1.5
     72}
     73}}}
     74
     75=== using $HOME/.bashrc ===
     76This file can be used to load or to define your own environment during each login if you write the commands on .bashrc. An example looks like this:
     77
     78{{{
     79# LOAD MODULE #
     80# sets for sphynx
     81if [ "$HOSTNAME" == "sphynx.ccs.tulane.edu" ] ; then
     82 module load intel/12.1
     83 module load openmpi-intel-ib/1.6
     84 module load matlab/R2013a
     85fi
     86# sets for ares
     87if [ "$HOSTNAME" == "login-02-01" ]; then
     88  module load intel/9.1
     89  module load openmpi-intel-ib/1.5
     90  export MKLROOT="/usr/local/opt/intel/composerxe/mkl"
     91fi
     92}}}