hpcugent / lmod-ugent Goto Github PK
View Code? Open in Web Editor NEWspec files of Lmod for UGent-HPC
spec files of Lmod for UGent-HPC
Lmod 7.1.11 has proper support for localisation via the errWarnMsgHook
, which now has to be used since LmodWarning
and LmodError
no longer call msgHook
...
This is the result of ml use /us<tab>
:
$ ml use /user-bash: _filedir: command not found
I guess we're missing the bash-completion.noarch
RPM?
See also https://sourceforge.net/p/lmod/mailman/message/32849535/
Instead of patching Lmod to hide the cluster modules, you can also use a hook.
Untested code below:
local function visible_hook(modT)
-- modT is a table with: fullName, sn, fn and isVisible
-- The latter is a boolean to determine if a module is visible or not
if modT.fullName:find("cluster/%.") then
modT.isVisible = false
end
end
hook.register("isVisibleHook", visible_hook)
is it possible to ship a (small) wrapper /usr/bin/modulecmd
that is either compatible with env-modules? not sure what it entails
*** ERROR: ambiguous python shebang in /usr/share/lmod/8.2.5/libexec/run_lmod_cache.py: #!/usr/bin/python -E. Change it to python3 (or python2) explicitly.
error: Bad exit status from /var/tmp/rpm-tmp.Imca5x (%install)
easiest fix is to fix it in the spec file during the %build
phase
The lmod_cache check will fail when not run as root, since it tries to write and chown a file under /var/cache. Workaround:
touch /var/cache/run_lmod_cache.nagios.json.gz
chown vsc40003:nrpe /var/cache/run_lmod_cache.nagios.json.gz
The script should check the existance of this file and give a clear error message if this is missing
We should test everything in SitePackage.lua. If internal structures of Lmod change, this might break something on our end.
# dnf install python3-sphinx
Last metadata expiration check: 0:07:19 ago on Sat 29 Aug 2020 10:36:32 PM CEST.
Error:
Problem: package python3-sphinx-1:1.7.6-1.el8.noarch requires environment(modules), but none of the providers can be installed
- package Lmod-8.2.5-2.ug.el8.x86_64 conflicts with environment-modules provided by environment-modules-4.1.4-4.el8.x86_64
- package Lmod-8.2.5-2.ug.el8.x86_64 conflicts with environment-modules provided by environment-modules-4.1.4-1.el8.x86_64
- problem with installed package Lmod-8.2.5-2.ug.el8.x86_64
- conflicting requests
- package Lmod-8.2.7-1.el8.x86_64 is filtered out by exclude filtering
the Lmod rpm/spec should mention a 'Provides: environment(modules)' if it does provide environment-modules compatibilty
Add error:
$ ml load cluster
Lmod has detected the following error: No default cluster can be loaded. You need to choose one: 'ml spider cluster' gives an overview
While processing the following module(s):
Module fullname Module Filename
--------------- ---------------
cluster/.defaultcluster /etc/modulefiles/vsc/cluster/.defaultcluster.lua
Which means that /etc/bashrc
was not sourced.
Add to part about collections:
Collections make it very easy to work with your own compiled software. First load all the modules that you need to compile your software. Then build it and test it. If everything works fine, save the current set of loaded modules to a collection. In every job script that uses your software, you simple have to restore the collection. No more meddling with lots of module loads.
Test restore/swapping between clusters of collections. Collection saved on one cluster should work on another if all modules are present.
Should allow to swap between clusters with same modulepath (golett <=> phanpy, delcatty <=> raichu)
@boegel said: Currently, restoring a collection on a cluster that has the same $MODULEPATH should already work, but restoring on a different cluster (e.g. from golett to delcatty or vice versa) results in the modules being loaded from the wrong location)
list of knows caveats with Lmod compared to environment modules setup:
module load cluster
is broken, must use module load cluster/$VSC_DEFAULT_CLUSTER_MODULE
$MODULEPATH
must be done with module use
The environment MODULEPATH has been changed in unexpected ways
bugs/issues:
module list
and module --terse avail
doesn't go do stdout as desiredmodule use
on /apps/gent/.../modules/all
results in spider cache not being found
/apps/gent
is a symlink, which gets resolved on manual module use
, leading to path mismatch (bug in Lmod?)Users now get to see something like this, which is confusing them:
$ ml Python/2.7.11-intel-2016a
$ ml R/3.3.1-intel-2016b
Lmod has detected the following error: Your site prevents the automatic swapping of modules with same name. You must explicitly unload the loaded version of "intel" before you can load the new
one. Use swap (or an unload followed by a load) to do this:
$ module swap intel intel/2016b
Alternatively, you can set the environment variable LMOD_DISABLE_SAME_NAME_AUTOSWAP to "no" to re-enable same name autoswapping.
While processing the following module(s):
Module fullname Module Filename
--------------- ---------------
R/3.3.1-intel-2016b /apps/gent/SL6/sandybridge/modules/all/R/3.3.1-intel-2016b
If you don't understand the warning or error, contact the helpdesk at [email protected]
First of all, the swapping suggestion is confusing since it won't get them out of the woods.
@wpoely86 Can we provide a more meaningful error message here via a hook?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.