lib/hpc/utils.pm

get_slurm_version

get_slurm_version();

Returns the slurm package to be installed. SLURM_VERSION takes the form of Major_Minor. for instance: 23_02.

get_mpi_src

get_mpi_src();

Returns the source code which is used based on HPC_LIB job variable. The variable indicates the HPC library which the mpi use to compile the source code. But the variable can be any indicator to select the requisite source code that test should use.

Make sure that the source code matches with the correct compiler. if the variable is not set, one of the other MPI implementations will be used(mpich, openmpi, mvapich2).

Returns an array with the mpi compiler and the source code located in /data/hpc

relogin_root

relogin_root();

This sub logouts the root user and relogins him from terminal. Useful to rerun configuration scripts after some changes

setup_scientific_module

setup_scientific_module();

Installs the various scientific HPC libraries and prepares the environment for use https://documentation.suse.com/sle-hpc/15-SP3/single-html/hpc-guide/#sec-compute-lib

When subroutine returns immediately returns 1 to indicate that no relogin has occurred.

compare_mpi_versions

compare_mpi_versions($package_name, $package_version, $another_package_version);

Given an HPC package, compare package_version against another_package_version. The default behavior is to compare any given another_package_version with the installed version. In that case package_version is determined in runtime.