Hi all,

If you use Lmod as your module system, you can either allow or disable
'auto swap'. If you want to mimic Tmod behaviour as close as possible,
you usually don't want this to happen. A user might get confused by it
(especially in a flat module tree).

However, Lmod gives out a rather 'complex' error which might not
always make sense to the user. With hooks, we can give a 'nicer' error
for EasyBuild created modules:

$ ml purge
$ ml ncurses/5.9-intel-2015a
$ ml ncurses/5.9-intel-2015b
Lmod has detected the following error:  A different version of the
'ncurses' module is already loaded (see output of 'ml').


If you don't understand the warning or error, contact the helpdesk at <email>

$ ml libreadline/6.3-intel-2014b
Lmod has detected the following error:  A different version of the
'intel' module is already loaded (see output of 'ml').
You should load another 'libreadline' module for that is compatible
with the currently loaded version of 'intel'.
Use 'ml spider libreadline' to get an overview of the available versions.


If you don't understand the warning or error, contact the helpdesk at <email>
While processing the following module(s):
    Module fullname              Module Filename
    ---------------              ---------------
    libreadline/6.3-intel-2014b
/home/opt/easybuild/modules/all/libreadline/6.3-intel-2014b

The `SitePackage.lua` to do this can be found at
https://github.com/TACC/Lmod/tree/master/contrib/more_hooks

Ward

Reply via email to