HPC/Module Setup: Difference between revisions
< HPC
Jump to navigation
Jump to search
(created) |
mNo edit summary |
||
Line 1: | Line 1: | ||
== Shell startup files | == Shell startup files == | ||
* The default login shell on ''Carbon'' is [http://en.wikipedia.org/wiki/Bash_(Unix_shell) bash] | * The default login shell on ''Carbon'' is [http://en.wikipedia.org/wiki/Bash_(Unix_shell) bash] | ||
* Place customizations in the file <code>~/.bashrc</code> | * Place customizations in the file <code>~/.bashrc</code> | ||
Line 11: | Line 11: | ||
export PATH=''$HOME/mypackage/bin'':$PATH | export PATH=''$HOME/mypackage/bin'':$PATH | ||
module load ''name1 name2 | module load ''name1 name2 …'' | ||
* tcsh only if you insist. It is not supported. In fact: [http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ “csh programming considered harmful”] – [http://en.wikipedia.org/wiki/Tom_Christiansen Tom Christiansen] | * tcsh only if you insist. It is not supported. In fact: [http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ “csh programming considered harmful”] – [http://en.wikipedia.org/wiki/Tom_Christiansen Tom Christiansen] | ||
== Environment Modules == | |||
''Carbon'' uses the [http://modules.sourceforge.net/ Environment Modules] package to dynamically provision software. | |||
The package primarily modifies your $PATH and other environment variables. | |||
$ '''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''' |
Revision as of 21:17, 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 …
- tcsh only if you insist. It is not supported. In fact: “csh programming considered harmful” – Tom Christiansen
Environment Modules
Carbon uses the Environment Modules package to dynamically provision software. The package primarily modifies your $PATH and other environment variables.
$ 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