HPC/Module Setup: Difference between revisions

From CNM Wiki
< HPC
Jump to navigation Jump to search
mNo edit summary
Line 20: Line 20:
The package primarily modifies your $PATH and other environment variables.
The package primarily modifies your $PATH and other environment variables.


Modules introduction at other sites:
** [http://www.nersc.gov/users/software/nersc-user-environment/modules/ NERSC]
** [http://core.sam.pitt.edu/node/71 PITT]
** [https://nf.apac.edu.au/facilities/software/modules.php NCI (AU)]
On Carbon:
  $ '''module help'''
  $ '''module help'''
  …
  …
Line 41: Line 47:


* [[HPC/Software/Catalog | Current module catalog]]
* [[HPC/Software/Catalog | Current module catalog]]
* Conventions on Carbon:
** Most application software is installed under <code>/opt/soft/</code>
** '''Packages''' are located in top-level directories named <code>''name-version-build''</code>, e.g. <code>/opt/soft/jmol-12.1.37-1</code>.
** '''Module names''' are organized by a mostly version-less name, with the version following after a slash: <code>''name/version-build''</code>. Using the <code>''name''</code> alone is possibly and will select a default version for a SubCommand to act upon.

Revision as of 21:36, May 18, 2011

Shell startup files

  • The default login shell on Carbon is bash
  • Place customizations in the file ~/.bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

export PATH=$HOME/mypackage/bin:$PATH
module load name1 name2 …

Environment Modules

Carbon uses the Environment Modules package to dynamically provision software. The package primarily modifies your $PATH and other environment variables.

Modules introduction at other sites:

On Carbon:

$ module help
…
  Usage: module [ switches ] [ subcommand ] [subcommand-args ]
…

  Available SubCommands and Args:

+ load		modulefile [modulefile ...]
+ unload	modulefile [modulefile ...]
+ switch	[modulefile1] modulefile2.]
+ list

+ avail		[modulefile [modulefile ...]]
+ whatis	[modulefile [modulefile ...]]
+ help		[modulefile [modulefile ...]]
+ show		modulefile [modulefile ..]

For full documentation, consult the manual page:

$ man module
  • Current module catalog
  • Conventions on Carbon:
    • Most application software is installed under /opt/soft/
    • Packages are located in top-level directories named name-version-build, e.g. /opt/soft/jmol-12.1.37-1.
    • Module names are organized by a mostly version-less name, with the version following after a slash: name/version-build. Using the name alone is possibly and will select a default version for a SubCommand to act upon.