How to add module to environment module? So I can load it using module load

276 Views Asked by At

When I run module avail, I got:

--------------------------------- /usr/share/modules/modulefiles ---------------------------------
dot  module-git  module-info  modules  null  use.own  

--------------------------------- /usr/share/modules/modulefiles ---------------------------------
dot  module-git  module-info  modules  null  use.own  

And I notice people uses module to load gcc5 cuda10.0 by module load gcc5 cuda10.0 . Like this person did in: Slurm sbatch for a PyTorch script draining node; gres/gpu: count changed for node node002 from 0 to 1

How do I add things like gcc5 and cuda10.0 to my modules?

1

There are 1 best solutions below

0
On

You need to craft these modulefiles by hand if you manually install these specific software or the specific version of these software.

If you use a package manager like Spack or EasyBuild to build the software, those tools can also generate the corresponding modulefiles to use the software they built and install.