-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lmod
integration unclear in module documentation
#16730
Comments
Does one have to declare the system compiler as Just trying to separate a requirement from a usual or recommended practice. |
My understanding - and I may be wrong - is that you have to specify some compiler as Core, else there's no entry point for the module tree. So the system compiler should be in Core, but if that's all you need, fine. |
Having recently installed spack on a system with
lmod
and built packages with it I was confused thatmodule avail
showed no modules. After asking for help on slack I discovered thatsetup-env.sh
only setsMODULEPATH
fortcl
. I suggested on Slack that the module tutorial wasn't very clear aboutlmod
use but having just gone back and reread the itHierarchical Module Files
section is actually fairly clear, but the details for lmod get a bit lost in a) the length of it and b) issues elsewhere.Things which are confusing:
Using module files via Spack suggests to me that
lmod
should "just work" with no configuration:Shell support says:
with no mention that actually this only applies to
tcl
.Additionally the module tutorial:
lmod
module avail
working without changes toMODULEPATH
- admittedly this is for non-hierarchical modules, but it is usinglmod
.I also note (although its not strictly related) that the module tutorial says that
spack load
which I understand is not true.
Its hard to provide a clean paragraph change which fixes the above, but from a new user point-of-view I think the list of things needed to know to get
lmod
working as expected (i.e. hierarchically, because that's how lmod is generally used I believe):${SPACK_ROOT}/etc/spack/modules.yaml
needs to havelmod:
or maybelmod::
in it.You need to load the compiler(s) you want to use, then run
spack compiler add
.You must define at least one Core (i.e. os-defined) compiler in
modules.yaml
, to form the entry point for the heirarchy.You need to run something like this to add Spack's modules into
lmod
:You need to rebuild Spack's modules using
(I think?)
The text was updated successfully, but these errors were encountered: