Changes between Version 5 and Version 6 of cypress/ModuleCommand


Ignore:
Timestamp:
01/05/17 11:20:32 (8 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/ModuleCommand

    v5 v6  
    8080}}}
    8181
     82[http://modules.sourceforge.net/ Details]
    8283
    8384=== Using $HOME/.modulerc ===
     
    9495Compiling software in a user directory then defining personal environment modules is useful when software one needs are not installed on Cypress, or the installed ones are not of the desired version.
    9596
    96  
     97For example, [http://crd-legacy.lbl.gov/~xiaoye/SuperLU/ SuperLU] is not available on the main module.
     98
     99Download the source codes, and compile and install it, for example, on '''/lustre/project/dpg/local/SuperLU_5.2.1'''
     100
     101Create a [http://modules.sourceforge.net/man/modulefile.html module-definition] file, for example, as '''/lustre/project/dpg/local/modulefiles/SuperLU/5.2.1''' where the directory name '''SuperLU''' is the software name without version number,
     102and the file name, '''5.2.1''' is the version number. The file looks like this:
     103{{{
     104#%Module1.0 -*- tcl -*-
     105##
     106## modulefile
     107##
     108
     109module-whatis "a general purpose library for the direct solution of large, sparse, nonsymmetric systems of linear equations."
     110
     111set curMod [module-info name]
     112if { [ module-info mode load ] } {
     113    system "/bin/logger -p local0.info 'module_load: $curMod.'"
     114}
     115
     116conflict SuperLU/4.3
     117
     118module load intel-psxe/2016
     119set    INSTALL_ROOT    /lustre/project/dpg/local/SuperLU_5.2.1
     120
     121prepend-path    PATH               $INSTALL_ROOT/bin
     122prepend-path    LD_LIBRARY_PATH    $INSTALL_ROOT/lib
     123prepend-path    LIBRARY_PATH       $INSTALL_ROOT/lib
     124setenv          SLU_DIR            $INSTALL_ROOT
     125}}}
     126
     127Edit your '''.modulerc''' that looks like this:
     128
     129{{{
     130#%Module
     131module use /lustre/project/dpg/local/modulefiles
     132}}}
     133
     134Now your new module will be listed and you can load it with the usual commands.
     135{{{
     136[tulaneID@cypress1 ~]$ module avail
     137
     138------------------------------------------------ /lustre/project/dpg/local/modulefiles ------------------------------------------------
     139SuperLU/5.2.1
     140-------------------------------------------------------- /cm/local/modulefiles --------------------------------------------------------
     141cluster-tools/7.0                 ipmitool/1.8.13                   openldap
     142:
     143:
     144}}}
    97145=== Next Section ===
    98146[[cypress/using|Job Submissions]]