modules
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
modules [2022/03/07 14:30] – nico | modules [2022/03/23 11:47] (current) – nico | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Environment Modules ====== | ||
+ | |||
Environment modules are used to define environment variables for applications available on Magi. Formerly, we used **lmod**. We moved to **environment modules** in the current version of Magi. All modules are stored in / | Environment modules are used to define environment variables for applications available on Magi. Formerly, we used **lmod**. We moved to **environment modules** in the current version of Magi. All modules are stored in / | ||
Line 39: | Line 41: | ||
1) / | 1) / | ||
+ | ====== Upgrade from lmod to environment modules ====== | ||
+ | |||
+ | You should modify your .bashrc to switch from **lmod** to **environement modules**. The .bashrc is located at the root of your home directory. For example, my .bashrc is in / | ||
+ | |||
+ | if [ -z " | ||
+ | export BASHRC_READ=1 | ||
+ | module use / | ||
+ | module use / | ||
+ | module use / | ||
+ | # | ||
+ | fi | ||
+ | |||
+ | You should replace this section with this one below : | ||
+ | |||
+ | if [ -f / | ||
+ | then | ||
+ | source / | ||
+ | export MODULEPATH=/ | ||
+ | # Enable some modules here | ||
+ | module load / | ||
+ | fi | ||
+ | Then, you disconnect and reconnect to Magi and you should use **environment modules**. |
modules.1646659823.txt.gz · Last modified: 2022/03/07 14:30 by nico