Repository: NVIDIA/hpc-container-maker

Issue:
Need to update default version of Slurm
The default Slurm v20.11.7 has been removed from their [website](https://download.schedmd.com/slurm/) in favor of v20.11.9

Discussion:

Patch:
diff --git a/docs/building_blocks.md b/docs/building_blocks.md
index 744d218..6abf3a7 100644
--- a/docs/building_blocks.md
+++ b/docs/building_blocks.md
@@ -4371,7 +4371,7 @@ non-default compilers or other toolchain options are needed.  The
 default value is empty.
 
 - __version__: The version of SLURM source to download.  The default
-value is `20.11.7`.
+value is `21.08.8`.
 
 - __with_PACKAGE[=ARG]__: Flags to control optional packages when
 configuring.  For instance, `with_foo=True` maps to `--with-foo`
@@ -4388,7 +4388,7 @@ __Examples__
 
 
 ```python
-slurm_pmi2(prefix='/opt/pmi', version='20.02.7')
+slurm_pmi2(prefix='/opt/pmi', version='20.11.9')
 ```
 
 
diff --git a/hpccm/building_blocks/slurm_pmi2.py b/hpccm/building_blocks/slurm_pmi2.py
index 26fecca..b255dc5 100644
--- a/hpccm/building_blocks/slurm_pmi2.py
+++ b/hpccm/building_blocks/slurm_pmi2.py
@@ -76,7 +76,7 @@ class slurm_pmi2(bb_base, hpccm.templates.envvars, hpccm.templates.ldconfig):
     default value is empty.
 
     version: The version of SLURM source to download.  The default
-    value is `20.11.7`.
+    value is `21.08.8`.
 
     with_PACKAGE[=ARG]: Flags to control optional packages when
     configuring.  For instance, `with_foo=True` maps to `--with-foo`
@@ -92,7 +92,7 @@ class slurm_pmi2(bb_base, hpccm.templates.envvars, hpccm.templates.ldconfig):
     # Examples
 
     ```python
-    slurm_pmi2(prefix='/opt/pmi', version='20.02.7')
+    slurm_pmi2(prefix='/opt/pmi', version='20.11.9')
     ```
 
     """
@@ -107,7 +107,7 @@ class slurm_pmi2(bb_base, hpccm.templates.envvars, hpccm.templates.ldconfig):
         self.__ospackages = kwargs.pop('ospackages', ['bzip2', 'file', 'make',
                                                       'perl', 'tar', 'wget'])
         self.__prefix = kwargs.pop('prefix', '/usr/local/slurm-pmi2')
-        self.__version = kwargs.pop('version', '20.11.7')
+        self.__version = kwargs.pop('version', '21.08.8')
 
         # Setup the environment variables
         self.environment_variables['CPATH'] = '{}:$CPATH'.format(
diff --git a/recipes/osu_benchmarks/common.py b/recipes/osu_benchmarks/common.py
index e61fb7c..bed264e 100644
--- a/recipes/osu_benchmarks/common.py
+++ b/recipes/osu_benchmarks/common.py
@@ -41,7 +41,7 @@ Stage0 += shell(commands=[
     'ln -s /usr/local/ucx-mlnx-legacy/{1}/* /usr/local/ofed/{0}/usr/{1}'.format(version, directory) for version in mlnx_versions for directory in ['bin', 'lib']])
 
 # PMI2 support
-Stage0 += slurm_pmi2(prefix="/usr/local/pmi", version='20.11.7')
+Stage0 += slurm_pmi2(prefix="/usr/local/pmi", version='20.11.9')
 
 # OpenMPI
 Stage0 += openmpi(cuda=True, infiniband=False, ldconfig=True, ucx=True,


Test patch:
diff --git a/test/test_slurm_pmi2.py b/test/test_slurm_pmi2.py
index aee0d85..a06325c 100644
--- a/test/test_slurm_pmi2.py
+++ b/test/test_slurm_pmi2.py
@@ -38,7 +38,7 @@ class Test_slurm_pmi2(unittest.TestCase):
         """Default slurm_pmi2 building block"""
         p = slurm_pmi2()
         self.assertEqual(str(p),
-r'''# SLURM PMI2 version 20.11.7
+r'''# SLURM PMI2 version 21.08.8
 RUN apt-get update -y && \
     DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
         bzip2 \
@@ -48,12 +48,12 @@ RUN apt-get update -y && \
         tar \
         wget && \
     rm -rf /var/lib/apt/lists/*
-RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://download.schedmd.com/slurm/slurm-20.11.7.tar.bz2 && \
-    mkdir -p /var/tmp && tar -x -f /var/tmp/slurm-20.11.7.tar.bz2 -C /var/tmp -j && \
-    cd /var/tmp/slurm-20.11.7 &&   ./configure --prefix=/usr/local/slurm-pmi2 && \
-    cd /var/tmp/slurm-20.11.7 && \
+RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://download.schedmd.com/slurm/slurm-21.08.8.tar.bz2 && \
+    mkdir -p /var/tmp && tar -x -f /var/tmp/slurm-21.08.8.tar.bz2 -C /var/tmp -j && \
+    cd /var/tmp/slurm-21.08.8 &&   ./configure --prefix=/usr/local/slurm-pmi2 && \
+    cd /var/tmp/slurm-21.08.8 && \
     make -C contribs/pmi2 install && \
-    rm -rf /var/tmp/slurm-20.11.7 /var/tmp/slurm-20.11.7.tar.bz2''')
+    rm -rf /var/tmp/slurm-21.08.8 /var/tmp/slurm-21.08.8.tar.bz2''')
 
     @x86_64
     @ubuntu