Topics Map > •Research Computing
CRC Customizing Your Environment With the Module Command
Customizing Your Environment With the Module Command
Each user can customize their environment using the module command. This command lets you select software and will source the appropriate paths and libraries. All the requested user applications are located under the /opt/apps directory.
To list what applications are available, use the spider sub command:
To see a description of a specific package, use the spider sub command again:
To load the module for OpenMPI built with the GCC compilers, for example, use the load sub command:
To see a list of modules that you have loaded, use this command:
To change to the Intel compiler build of OpenMPI use the swap sub command:
To unload all of your modules, use this command:
To make sure a set of modules are loaded automatically at login, use the module save sub command:
Sometimes a module will not load without explicit dependencies. The following outlines this "error" and what to do
$ module load Boost
Lmod has detected the following error: These module(s) exist but cannot be loaded as requested: "Boost"
Try: "module spider Boost" to see how to load the module(s).
$ module spider Boost
-------------------------------------------
Boost:
---------------------------------------------
Description:
Boost provides free peer-reviewed portable C++ source libraries.
Versions:
Boost/1.58.0
Boost/1.61.0
Boost/1.63.0
Boost/1.64.0
Boost/1.66.0
Boost/1.67.0
Boost/1.68.0
Boost/1.69.0
Boost/1.70.0
Boost/1.71.0
Boost/1.72.0
-----------------------------------------
For detailed information about a specific "Boost" module (including how to load the modules) use the module's full name.
For example:
$ module spider Boost/1.72.0
----------------------------------------
$ module load Boost/1.72.0
Lmod has detected the following error: These module(s) exist but cannot be loaded as requested: "Boost/1.72.0"
Try: "module spider Boost/1.72.0" to see how to load the module(s).
$ module spider Boost/1.72.0
---------------------------------------
Boost: Boost/1.72.0
---------------------------------------
Description:
Boost provides free peer-reviewed portable C++ source libraries.
You will need to load all module(s) on any one of the lines below before the "Boost/1.72.0" module is available to load.
GCC/9.3.0 CUDA/11.0.182 OpenMPI/4.0.3
GCC/9.3.0 OpenMPI/4.0.3
iccifort/2020.1.217 CUDA/11.0.182 OpenMPI/4.0.3
iccifort/2020.1.217 impi/2019.7.217
Help:
Description
===========
Boost provides free peer-reviewed portable C++ source libraries.
More information
================
- Homepage: https://www.boost.org/
$ module load GCC/9.3.0 OpenMPI/4.0.3
$ module load Boost/1.72.0