Difference between revisions of "Modules and applications"
From ScientificComputing
(Created page with " <table style="width: 100%"> <tr valign=center> <td style="width: 40%; background: white; "> 300px </td> <td style="width: 2%; background:...") |
|||
Line 37: | Line 37: | ||
All new software is installed exclusively in the new software stack. | All new software is installed exclusively in the new software stack. | ||
+ | |||
+ | == Example == | ||
+ | Loading Python in the old software stack: | ||
+ | |||
+ | $ module load new python/3.7.1 | ||
+ | Autoloading openblas/0.2.13_seq | ||
+ | $ module list | ||
+ | Currently Loaded Modulefiles: | ||
+ | 1) modules 3) openblas/0.2.13_seq(default:seq) | ||
+ | 2) new 4) python/3.7.1 | ||
+ | |||
+ | Switching to the new software stack: | ||
+ | |||
+ | $ env2lmod | ||
+ | $ module list | ||
+ | |||
+ | Currently Loaded Modules: | ||
+ | 1) StdEnv 2) gcc/4.8.5 | ||
+ | |||
+ | |||
+ | Load Python 3.8.5 | ||
+ | $ module load gcc/6.3.0 python/3.8.5 | ||
+ | |||
+ | The following have been reloaded with a version change: | ||
+ | 1) gcc/4.8.5 => gcc/6.3.0 | ||
+ | |||
+ | |||
+ | Switching back to the old software stack: | ||
+ | |||
+ | $ lmod2env | ||
+ | $ module list | ||
+ | Currently Loaded Modulefiles: | ||
+ | 1) modules | ||
+ | |||
+ | Load Python 3.7.1 again | ||
+ | $ module load new gcc/4.8.2 python/3.7.1 | ||
+ | Autoloading openblas/0.2.13_seq | ||
+ | $ module list | ||
+ | Currently Loaded Modulefiles: | ||
+ | 1) modules 3) gcc/4.8.2(default:4.8) 5) python/3.7.1 | ||
+ | 2) new 4) openblas/0.2.13_seq(default:seq) |
Revision as of 16:03, 20 January 2021
What is a Modules package?A Modules package is a tool to let users to easily configure their computing environment which includes
We employ two types of Modules packages:
|
Two software stacks on Euler
While Leonhard Open contains only one software stack which uses LMOD Modules, Euler contains two software stacks:
- The new software stack uses LMOD Modules
- The old software stack uses Environment Modules
Upon your login on Euler, the old software stack is set by default. You can switch from the old software stack to the new software stack by typing the command:
$ env2lmod
and vice-versa
$ lmod2env
All new software is installed exclusively in the new software stack.
Example
Loading Python in the old software stack:
$ module load new python/3.7.1 Autoloading openblas/0.2.13_seq $ module list Currently Loaded Modulefiles: 1) modules 3) openblas/0.2.13_seq(default:seq) 2) new 4) python/3.7.1
Switching to the new software stack:
$ env2lmod $ module list Currently Loaded Modules: 1) StdEnv 2) gcc/4.8.5
Load Python 3.8.5
$ module load gcc/6.3.0 python/3.8.5 The following have been reloaded with a version change: 1) gcc/4.8.5 => gcc/6.3.0
Switching back to the old software stack:
$ lmod2env $ module list Currently Loaded Modulefiles: 1) modules
Load Python 3.7.1 again
$ module load new gcc/4.8.2 python/3.7.1 Autoloading openblas/0.2.13_seq $ module list Currently Loaded Modulefiles: 1) modules 3) gcc/4.8.2(default:4.8) 5) python/3.7.1 2) new 4) openblas/0.2.13_seq(default:seq)