简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM