Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# Go back to your home folder.
[...]$ cd ~
[~]$ cd intro_to_modules/

# Modules currently loaded.
[]$ mlmodule list
Currently Loaded Modules:
  1) slurm/latest (S)   2) arcc/1.0 (S)

# What's available within my 'current' environment.
# With respect to what modules I 'currently' have loaded.
[]$ module avail
...

...

Info

Some software has to be built with respect to a compiler.

By default we build using the GNU family of compilers for C/C++ and Fortran.

Info

Some commands have shortcuts. Using ml is the a shortcut to module list.

Code Block
[]$ module load gcc/13.2.0
[]$ ml
Currently Loaded Modules:
  1) slurm/latest (S)   3) gmp/6.2.1    5) mpc/1.3.1       7) zstd/1.5.5
  2) arcc/1.0     (S)   4) mpfr/4.2.0   6) zlib-ng/2.1.4   8) gcc/13.2.0

...

Purge Your Modules

Code Block
[]$ module purge
The following modules were not unloaded:
  (Use "module --force purge" to unload all):
  1) slurm/latest   2) arcc/1.0

# What has changed?
[]$ ml
[]$ module avail

...

Code Block
[]$ module spider python/3.10.6
[]$ module spider python/3.12.0
...
    You will need to load all module(s) on any one of the lines below before the "python/3.12.0" module is available to load.
      arcc/1.0  gcc/13.2.0

[]$ module spider python2
----------------------------------------------------------------------------
  python2: python2/2.7.18
----------------------------------------------------------------------------
    You will need to load all module(s) on any one of the lines below before the "python2/2.7.18" module is available to load.
      arcc/1.0

...

More module commands

Code Block
[]$ module
Modules based on Lua: Version 8.7  2022-04-16 13:49 -05:00
    by Robert McLay mclay@tacc.utexas.edu

module [options] sub-command [args ...]

Help sub-commands:
------------------
  help                              prints this message
  help                module [...]  print help message from module(s)

Loading/Unloading sub-commands:
-------------------------------
  load | add          module [...]  load module(s)
 ...

...

...