Skip to content

Commit 19ec5da

Browse files
authored
Merge pull request #308 from NVIDIA/rhel-libnvsdm
[RHEL] install libnvsdm packages to support nvl5+ systems
2 parents aed4a2c + 3742827 commit 19ec5da

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

rhel8/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "550" ]; then \
8484
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "570" ]; then \
8585
dnf install -y infiniband-diags nvlsm; fi
8686

87+
# libnvsdm packages are not available for arm64
88+
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "570" ] && [ "$TARGETARCH" != "arm64" ]; then \
89+
dnf install -y libnvsdm-${DRIVER_BRANCH}-${DRIVER_VERSION}-1; fi
90+
8791
COPY nvidia-driver /usr/local/bin
8892
COPY ocp_dtk_entrypoint /usr/local/bin
8993
COPY common.sh /usr/local/bin

rhel9/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "550" ]; then \
7878
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "570" ]; then \
7979
dnf install -y infiniband-diags nvlsm; fi
8080

81+
# libnvsdm packages are not available for arm64
82+
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$DRIVER_BRANCH" -ge "570" ] && [ "$TARGETARCH" != "arm64" ]; then \
83+
dnf install -y libnvsdm-${DRIVER_BRANCH}-${DRIVER_VERSION}-1; fi
84+
8185
COPY nvidia-driver /usr/local/bin
8286
COPY ocp_dtk_entrypoint /usr/local/bin
8387
COPY common.sh /usr/local/bin

0 commit comments

Comments
 (0)