1 / 3

How to Use Modules

How to Use Modules. The module package allows dynamic modification of a user’s programming environment via module files. The module command can be used to: Manage multiple versions of compilers, applications, tools and libraries

Télécharger la présentation

How to Use Modules

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Use Modules • The module package allows dynamic modification of a user’s programming environment via module files. • The module command can be used to: • Manage multiple versions of compilers, applications, tools and libraries • Manage software where complex changes to the environment are necessary • Manage software where name conflicts with other software would cause problems • The module package is available automatically for interactive and batch use on NCCS systems

  2. Some Useful Module Commands(see module man pages for more information)

  3. Reinitializing Modules • If you switch shell from your login shell during an “interactive” or “interactive batch” session, you need to reinitialize “module” before you can use it again. • If you specify a shell in your batch job that is different from your login shell, you need to reinitialize “module” before you can use it again from within the batch script. • To reinitialize “module”: • For csh type shells (csh, tcsh) source /usr/share/modules/init/shell-name(on discover) source /opt/modules/modules/init/shell-name(on palm) where shell-nameis eithercshortcsh. • For sh type shells (sh, bash, ksh) /usr/share/modules/init/shell-name(on discover) /opt/modules/modules/init/shell-name(on palm) where shell-nameis one ofsh,bash,orksh.

More Related