After loading a package with spack load, I cannot see the package with module list.
I have other machines with spack installed (version 0.13.4) but don't have this problem. I think this
problem happens with the current develop branch.
$ spack find gcc
==> 1 installed package
-- linux-rhel7-power8le / [email protected] -----------------------------
[email protected]
$ spack load gcc
$ module list
No Modulefiles Currently Loaded.
Instead, I am expecting to see after spack load:
$ module list
1) gcc-7.4.0-gcc-4.8.5-nusifl3
No reported errors or available traces.
I have the following spack version and env module:
$ spack --version
0.13.4-1247-4a5c64a
$ uname -a
Linux raptor11 4.14.0-115.8.1.el7a.ppc64le #1 SMP Thu May 9 14:45:13 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux
$ module --version
VERSION=3.2.10
DATE=2012-12-21
This is a result of #14062, which is present in develop but not in 0.13.4. spack load no longer uses modules behind the scenes, so module list will not show the loaded modules. @becker33 I wonder if there's a way to make a spack module list command that serves the same purpose.
Ok. Thank you for the quick information. So, I can check the list of loaded modules with the following command:
spack find --loaded
It works for me for now.
This seems like a rather obscure command to answer the fundamental question of "What modules do I have loaded?". I searched the docs for quite a while and never did find it. Just sort of lucked into it here.
It would be nice to add this everywhere "spack load" is used in the docs. As in "here we load the module", and then "this is how we see it was loaded".
Most helpful comment
This seems like a rather obscure command to answer the fundamental question of "What modules do I have loaded?". I searched the docs for quite a while and never did find it. Just sort of lucked into it here.
It would be nice to add this everywhere "spack load" is used in the docs. As in "here we load the module", and then "this is how we see it was loaded".