For the complete list of options and commands, see the Lmod modules command reference list |
Lmod is a Lua-based implementation of the module system, and generally claimed to be backwards compatible with the original. On the newer ECMWF platforms it is replacing the traditional TCL modules.
If you have used modules before, you will see the commands and options are almost identical. You will be able to load and unload modules, as well as checking which ones are loaded or available to load.
Please have a look at the Lmod modules command reference list for details on the different subcommands.
If the command fails for any reason (i.e. the module does not exist), it will return a non-zero exit code so you can trap it and deal with it appropriately. There is no need to check wether the module has been loaded or not. You may find that some scripts may fail early where they were not failing before because of this new behaviour
Loading a module when there was another version of it loaded is no longer a problem. Lmod will swap them automatically.
If two modules cannot be loaded at the same time due to a conflict, the old one will be swapped out and the new one will be loaded automatically.
You may feel that some packages or versions are missing when running the classic module avail. Lmod knows about those packages that are flavoured for different environments (compilers or MPI), and will only show as available to load those that have been installed for the currently loaded environment. Use module spider to see the whole picture
Note that there are no modules are loaded by default |