Difference between revisions of "Module system"

From KENET Training
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
<code bash>
 
<code bash>
 
   $ module avail
 
   $ module avail
   --------------------------------- /usr/share/modulefiles ------------------------------------------------------------
+
   -------------------------- /usr/share/modulefiles -------------------------------------
 
   mpi/openmpi-x86_64
 
   mpi/openmpi-x86_64
  
   -------------------------------- /opt/ohpc/pub/modulefiles ----------------------------------------------------------
+
   ------------------------ /opt/ohpc/pub/modulefiles --------------------------------------
 
   applications/gpu/gromacs/2024.4    applications/gpu/qespresso/7.3.1
 
   applications/gpu/gromacs/2024.4    applications/gpu/qespresso/7.3.1
 
</code>
 
</code>
Line 26: Line 26:
 
     module list
 
     module list
 
</code>
 
</code>
 +
 +
Next:
 +
[[Advanced_Usage |Advanced_Usage]]
  
 
Up:
 
Up:
 
[[ HPC_Usage| HPC_Usage]]
 
[[ HPC_Usage| HPC_Usage]]

Latest revision as of 07:46, 15 April 2025

HPC facilities provide a user friendly environment to manage a large number of codes and versions of those codes, on this cluster, we have lmod [1] module system available to manage the user environment. To see the codes that are available, the module command is available:

 $ module avail
  -------------------------- /usr/share/modulefiles -------------------------------------
  mpi/openmpi-x86_64
  ------------------------ /opt/ohpc/pub/modulefiles --------------------------------------
  applications/gpu/gromacs/2024.4    applications/gpu/qespresso/7.3.1

the module system also provide a set of additional commands for managing modules: module load to activate an environment:

   module load applications/gpu/gromacs/2024.4

Module unload:

   module unload applications/gpu/gromacs/2024.4

module purge:

   module purge

and module list, to show loaded modules

   module list

Next: Advanced_Usage

Up: HPC_Usage