Skip to content

Commit 1436b48

Browse files
authored
Merge pull request #278 from NVIDIA/fm-nscq-arm
enable fabricmanager and nscq packages in arm64 images
2 parents 2b973f2 + cd9ab9e commit 1436b48

File tree

5 files changed

+10
-25
lines changed

5 files changed

+10
-25
lines changed

rhel8/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,12 @@ RUN sh /tmp/install.sh depinstall && \
6262

6363
ADD drivers drivers/
6464

65-
# Fetch the installer automatically for passthrough/baremetal types
65+
# Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
6666
RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
6767
cd drivers && \
6868
DRIVER_ARCH=${TARGETARCH/amd64/x86_64} && DRIVER_ARCH=${DRIVER_ARCH/arm64/aarch64} && \
6969
curl -fSsl -O $BASE_URL/$DRIVER_VERSION/NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
70-
chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run; fi
71-
72-
# Install fabric-manager packages
73-
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
70+
chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
7471
versionArray=(${DRIVER_VERSION//./ }); \
7572
DRIVER_BRANCH=${versionArray[0]}; \
7673
if [ ${versionArray[0]} -ge 470 ] || ([ ${versionArray[0]} == 460 ] && [ ${versionArray[1]} -ge 91 ]); then \

rhel9/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,12 @@ RUN sh /tmp/install.sh depinstall && \
6161

6262
ADD drivers drivers/
6363

64-
# Fetch the installer automatically for passthrough/baremetal types
64+
# Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
6565
RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
6666
cd drivers && \
6767
DRIVER_ARCH=${TARGETARCH/amd64/x86_64} && DRIVER_ARCH=${DRIVER_ARCH/arm64/aarch64} && \
6868
curl -fSsl -O $BASE_URL/$DRIVER_VERSION/NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
69-
chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run; fi
70-
71-
# Install fabric-manager packages
72-
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
69+
chmod +x NVIDIA-Linux-$DRIVER_ARCH-$DRIVER_VERSION.run && \
7370
versionArray=(${DRIVER_VERSION//./ }); \
7471
DRIVER_BRANCH=${versionArray[0]}; \
7572
dnf module enable -y nvidia-driver:${DRIVER_BRANCH}-dkms && \

ubuntu20.04/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,10 @@ COPY --from=build /work/vgpu-util /usr/local/bin
7575

7676
ADD drivers drivers/
7777

78-
# Fetch the installer automatically for passthrough/baremetal types
78+
# Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
7979
RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
8080
cd drivers && \
81-
/tmp/install.sh download_installer; fi
82-
83-
# Fabric manager packages are not available for arm64
84-
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
81+
/tmp/install.sh download_installer && \
8582
apt-get update && \
8683
apt-get install -y --no-install-recommends nvidia-fabricmanager-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 \
8784
libnvidia-nscq-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 && \

ubuntu22.04/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,10 @@ COPY --from=build /work/vgpu-util /usr/local/bin
7575

7676
ADD drivers drivers/
7777

78-
# Fetch the installer automatically for passthrough/baremetal types
78+
# Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
7979
RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
8080
cd drivers && \
81-
/tmp/install.sh download_installer; fi
82-
83-
# Fabric manager packages are not available for arm64
84-
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
81+
/tmp/install.sh download_installer && \
8582
apt-get update && \
8683
apt-get install -y --no-install-recommends nvidia-fabricmanager-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 \
8784
libnvidia-nscq-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 && \

ubuntu24.04/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,10 @@ COPY --from=build /work/vgpu-util /usr/local/bin
7272

7373
ADD drivers drivers/
7474

75-
# Fetch the installer automatically for passthrough/baremetal types
75+
# Fetch the installer, fabricmanager and libnvidia-nscq automatically for passthrough/baremetal types
7676
RUN if [ "$DRIVER_TYPE" != "vgpu" ]; then \
7777
cd drivers && \
78-
/tmp/install.sh download_installer; fi
79-
80-
# Fabric manager packages are not available for arm64
81-
RUN if [ "$DRIVER_TYPE" != "vgpu" ] && [ "$TARGETARCH" != "arm64" ]; then \
78+
/tmp/install.sh download_installer && \
8279
apt-get update && \
8380
apt-get install -y --no-install-recommends nvidia-fabricmanager-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 \
8481
libnvidia-nscq-${DRIVER_BRANCH}=${DRIVER_VERSION}-1 && \

0 commit comments

Comments
 (0)