<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://systems.nic.uoregon.edu/internal-wiki/index.php?action=history&amp;feed=atom&amp;title=Software%3AModules</id>
	<title>Software:Modules - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://systems.nic.uoregon.edu/internal-wiki/index.php?action=history&amp;feed=atom&amp;title=Software%3AModules"/>
	<link rel="alternate" type="text/html" href="https://systems.nic.uoregon.edu/internal-wiki/index.php?title=Software:Modules&amp;action=history"/>
	<updated>2026-08-19T10:29:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://systems.nic.uoregon.edu/internal-wiki/index.php?title=Software:Modules&amp;diff=3029&amp;oldid=prev</id>
		<title>Nic-systems: Created page with &quot;The Modules package provides for the dynamic modification of the user's environment via modulefiles.  Modules 3.2.10 is installed in /usr/local/packages/Modules (or possibly /...&quot;</title>
		<link rel="alternate" type="text/html" href="https://systems.nic.uoregon.edu/internal-wiki/index.php?title=Software:Modules&amp;diff=3029&amp;oldid=prev"/>
		<updated>2020-02-04T02:16:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The Modules package provides for the dynamic modification of the user&amp;#039;s environment via modulefiles.  Modules 3.2.10 is installed in /usr/local/packages/Modules (or possibly /...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Modules package provides for the dynamic modification of the user's environment via modulefiles.&lt;br /&gt;
&lt;br /&gt;
Modules 3.2.10 is installed in /usr/local/packages/Modules (or possibly /packages) on the compute/development nodes. In case the Modules version is ever updated, the alias 'current' will always point to the latest version, and may be used instead of a version number.&lt;br /&gt;
&lt;br /&gt;
== Set Up ==&lt;br /&gt;
&lt;br /&gt;
To use Modules on these platforms, add the following lines to your login scripts:&lt;br /&gt;
&lt;br /&gt;
'''tcsh'''&lt;br /&gt;
&lt;br /&gt;
If you use tcsh as your login shell, add these lines to your .cshrc or .tcshrc file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 setenv MODULE_VERSION current&lt;br /&gt;
 setenv MODULESHOME /usr/local/packages/Modules/$MODULE_VERSION&lt;br /&gt;
 unsetenv MODULEPATH&lt;br /&gt;
 if (-e $MODULESHOME/init/tcsh) source $MODULESHOME/init/tcsh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''bash'''&lt;br /&gt;
&lt;br /&gt;
If you use bash as your login shell, add these lines to your .bash_profile:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 export MODULE_VERSION=current&lt;br /&gt;
 export MODULESHOME=/usr/local/packages/Modules/$MODULE_VERSION&lt;br /&gt;
 export MODULEPATH=&amp;quot;&amp;quot;&lt;br /&gt;
 test -s $MODULESHOME/init/bash &amp;amp;&amp;amp; . $MODULESHOME/init/bash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Some platforms already have an older, built-in version of Modules installed and enabled by default, which can interfere with the proper function of the current version (3.2.3).  The current version is set up to use both the built-in modules as well as it's own.  To ensure proper behavior, the MODULEPATH variable is deliberately unset, and then properly initialized using the Modules init scripts.  &lt;br /&gt;
&lt;br /&gt;
== Additional set up on IBMs ==&lt;br /&gt;
&lt;br /&gt;
Absoft Modules (version 3.1.6) are already enabled on the IBMs by default.  To use the latest install (3.2.3), which includes all of the Absoft modulefiles and more, you must disable the Absoft modules.  This can be done by adding the following line to your startup scripts:&lt;br /&gt;
&lt;br /&gt;
'''tcsh'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 setenv MODULE_ABSOFT disabled&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''bash'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 export MODULE_ABSOFT=disabled&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line should be placed somewhere before the &amp;quot;if&amp;quot; (csh) or &amp;quot;test&amp;quot; (bash) line that sources the Modules init script.&lt;br /&gt;
&lt;br /&gt;
== Using Modules ==&lt;br /&gt;
&lt;br /&gt;
Once the Module script is sourced (see above), invoke the &amp;quot;module&amp;quot; command to use modules.&lt;br /&gt;
&lt;br /&gt;
'''Examples'''&lt;br /&gt;
&lt;br /&gt;
To get usage info on modules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module help&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To list available modules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module avail&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To list available mpi modules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module avail mpi&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find out what a module is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module whatis {module}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To see how a module affects your environment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module show {module}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load or unload a module:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module load/unload {module}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To view a list of loaded modules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module list&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more information on using modules, load the &amp;quot;modules&amp;quot; module, then view the man page module:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;module load modules&lt;br /&gt;
man module&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nic-systems</name></author>
	</entry>
</feed>