While working on the HPC cluster the user may need some specific programs that are not installed by default. Many of them can be installed via environment modules.
To check the available modules, the command to be issued is
-bash-5.1$ module avail -------------------------------------------------- /usr/share/Modules/modulefiles -------------------------------------------------- dot module-git module-info modules null use.own ------------------------------------------------------ /usr/share/modulefiles ------------------------------------------------------ hpcx-cuda12/hpcx hpcx-cuda12/hpcx-ompi hpcx-cuda13/hpcx-debug hpcx-cuda13/hpcx-prof hpcx-cuda12/hpcx-debug hpcx-cuda12/hpcx-prof hpcx-cuda13/hpcx-debug-ompi hpcx-cuda13/hpcx-prof-ompi hpcx-cuda12/hpcx-debug-ompi hpcx-cuda12/hpcx-prof-ompi hpcx-cuda13/hpcx-mt hpcx-cuda13/hpcx-stack hpcx-cuda12/hpcx-mt hpcx-cuda12/hpcx-stack hpcx-cuda13/hpcx-mt-ompi mpi/openmpi-x86_64 hpcx-cuda12/hpcx-mt-ompi hpcx-cuda13/hpcx hpcx-cuda13/hpcx-ompi Key: modulepath
By default, hpcx with CUDA 13 and MPI compilers is loaded at login, but the user can manually load CUDA 12 using the available modules.
The user can load one of the available modules with the command
-bash-5.1$ module load <module_name>
A list of the loaded modules can be retrieved with the following command
-bash-5.1$ module list Currently Loaded Modulefiles: 1) hpcx-cuda12/hpcx-mt-ompi
When the user does not need a module anymore, it can be unloaded:
-bash-5.1$ module unload <module_name>