| 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 === |
| 6 | The 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 -------------------------------------------------------- |
| 11 | cluster-tools/7.0 ipmitool/1.8.13 openldap |
| 12 | cmd module-git openmpi/gcc/64/1.8.2-mlnx-ofed2 |
| 13 | dot module-info shared |
| 14 | freeipmi/1.3.4 mvapich2/gcc/64/2.0rc1-mlnx-ofed2 use.own |
| 15 | intel/mic/sdk/3.3 null version |
| 16 | |
| 17 | ------------------------------------------------------- /cm/shared/modulefiles -------------------------------------------------------- |
| 18 | default-environment fftw3/openmpi/open64/64/3.3.3 slurm/14.03.0 |
| 19 | fftw3/openmpi/gcc/64/3.3.3 gcc/4.8.2 tulane/intel-psxe/2015 |
| 20 | |
| 21 | ------------------------------------------------------- /share/apps/modulefiles ------------------------------------------------------- |
| 22 | anaconda/2.1.0 gaussian09/d.01 metis/5.1.0 novoalign/3.02.11-mpich samtools/1.1 |
| 23 | boost/1.57.0 gcc/4.7.4 mosaik/2.2.3 openmpi/1.8.4 star/2.4.0i |
| 24 | bowtie/1.1.1 hdf5/1.8.14 mpich/3.1.4 parmetis/4.0.3 sundials/2.5.0 |
| 25 | bowtie2/2.2.4 hdf5-parallel/1.8.14 ncbi-blast/2.2.30+ petsc/3.4.5 tinker/7.1.2 |
| 26 | cmake/3.0.2 idev netcdf/4.3.2 petsc/3.5.2 tophat/2.0.13 |
| 27 | diamond/0.6.12 intel-psxe/2015-update1 netcdf-cxx4/4.2.1 petsc/3.5.3 vtk/6.1.0 |
| 28 | eigen/3.2.4 matlab/r2013b netcdf-fortran/4.4.1 R/3.1.2 |
| 29 | emacs/24.4 matlab/r2015a novoalign/3.02.11 rsem/1.2.19 |
| 30 | }}} |
| 31 | |
| 32 | === Loading & Unloading Modules === |
| 33 | This will load the Intel Parallel Studio XE which contains the Intel compiler suite: |
| 34 | |
| 35 | {{{[tulaneID@cypress1 ~]$ module load intel-psxe}}} |
| 36 | |
| 37 | To 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 |
| 45 | Currently Loaded Modulefiles: |
| 46 | 1) slurm/14.03.0 2) idev 3) intel-psxe/2015-update1 |
| 47 | }}} |
| 48 | |
| 49 | |
| 50 | === using $HOME/.modulerc === |
| 51 | This 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 |
| 55 | module load matlab/R2013a |
| 56 | }}} |
| 57 | |
| 58 | A .modulerc begins with the magic cookie, '#%Module'. A version number may be placed after this string. The current version is 1.0. |
| 59 | |
| 60 | If you want to set .modulerc to work for both "sphynx" and "ares", it is better to set like: |
| 61 | |
| 62 | {{{ |
| 63 | #%Module1.0 |
| 64 | if { $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 | } |
| 69 | if { $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 === |
| 76 | This 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 |
| 81 | if [ "$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 |
| 85 | fi |
| 86 | # sets for ares |
| 87 | if [ "$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" |
| 91 | fi |
| 92 | }}} |