Skip to content

Commit 92aef35

Browse files
authored
Merge pull request #303 from NVIDIA/ocp-b200-rhel9
[B200][OCP] pre-install nvlsm and infiniband pkgs
2 parents 40f32c5 + 4f7a1d5 commit 92aef35

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

rhel8/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
8181
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "550" ]; then \
8282
dnf install -y nvidia-imex-${DRIVER_BRANCH}-${DRIVER_VERSION}-1; fi
8383

84+
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "570" ]; then \
85+
dnf install -y infiniband-diags nvlsm; fi
86+
8487
COPY nvidia-driver /usr/local/bin
8588
COPY ocp_dtk_entrypoint /usr/local/bin
8689
COPY common.sh /usr/local/bin

rhel8/nvidia-driver

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,6 @@ _ensure_nvlink5_prerequisites() (
289289
echo "waiting for the mlx5_core and ib_umad kernel modules to be loaded"
290290
sleep 10
291291
done
292-
293-
echo "Installing Infiniband packages"
294-
dnf -q -y --releasever=${DNF_RELEASEVER} install libibverbs-utils infiniband-diags > /dev/null
295-
296-
echo "Installing the NVLink subnet manager..."
297-
dnf -q -y --releasever=${DNF_RELEASEVER} install nvlsm > /dev/null
298292
)
299293

300294
# For each kernel module configuration file mounted into the container,

rhel9/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
7575
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "550" ]; then \
7676
dnf install -y nvidia-imex-${DRIVER_BRANCH}-${DRIVER_VERSION}-1; fi
7777

78+
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "570" ]; then \
79+
dnf install -y infiniband-diags nvlsm; fi
80+
7881
COPY nvidia-driver /usr/local/bin
7982
COPY ocp_dtk_entrypoint /usr/local/bin
8083
COPY common.sh /usr/local/bin

rhel9/nvidia-driver

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,6 @@ _ensure_nvlink5_prerequisites() (
291291
echo "waiting for the mlx5_core and ib_umad kernel modules to be loaded"
292292
sleep 10
293293
done
294-
295-
echo "Installing Infiniband packages..."
296-
dnf -q -y --releasever=${DNF_RELEASEVER} install libibverbs-utils infiniband-diags > /dev/null
297-
298-
echo "Installing the NVLink subnet manager..."
299-
dnf -q -y --releasever=${DNF_RELEASEVER} install nvlsm > /dev/null
300294
)
301295

302296
# For each kernel module configuration file mounted into the container,

0 commit comments

Comments
 (0)