I am setting up a small cluster with high performance computing tools. By now I already have Munge and Slurm, compilers and libraries installed. I am starting to compile the codes for calculations.
Usually, Environment Modules are used to load and/or unload this calculation programs with command lines as:
module load Program
However, I could not find a bundle to install that provides this capability. Is there any? In RH based systems, there is the rpm environment-modules, I believe.
Nice coincidence. We have all components to release Slurm/Munge/Pdsh bundle as well, it is currently being tested. As for the Environment Modules, I agree that they are useful and should be included with Clear Linux. I only had a cursory look at the repository a while ago, seemed fairly straightforward (at least compared to building Munge/Slurm). It is possible to live without the Environment Modules, but you need to set the environment yourself (typically via a script file). Having said that, I will revisit the issue.
Dear @juro.bystricky and @ahkok . Sorry I couldn’t post this before. I was kind of AFK.
The best option that I could find was to set up the environment variables in the slurm scripts for jobs. I will only run jobs with the sbatch command so it isn’t a problem for now.
Furthermore. I kind that have a how-to documentation on how to set up slurm in clear linux from a fresh installation. If You wish, I can translate to english to be added somewhere in clear linux docs.
Sometimes within the next few days the “modules” bundle will be included in the cluster-tools bundle, but currently you need to install the bundle separately via
$ sudo swupd bundle-add modules
(After you install the bundle, you need to log out and log in again)
The “modules” bundle provides only some basic “modulefiles”, it is assumed packages provide their own “modulefiles” or the user edits/creates needed “modulefiles” by himself/herself. If you use a CLR package that could benefit from a “modulfile”, please let me know. (I plan on providing one for OpenMPI)
As for the documentation: I am not sure your documentation describes compiling/installing slurm/munge from sources or installing slurm using the cluster-tools bundle. In any case, documentation is always desired.
A good place would be, for example, here:
(I plan to post there a simple step-by-step document on cluster-tool bundle setup up as well.)