From 339e0d73a5833e0a185a1fefc3f9d395d2bd328d Mon Sep 17 00:00:00 2001 From: Trevor Bossert Date: Thu, 9 Nov 2023 16:34:01 -0800 Subject: [PATCH] Use cross compile so that cross compiling images works --- dockerfiles/base-images:rocky9.2-8 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dockerfiles/base-images:rocky9.2-8 b/dockerfiles/base-images:rocky9.2-8 index 14fbaa9..21ffbe2 100644 --- a/dockerfiles/base-images:rocky9.2-8 +++ b/dockerfiles/base-images:rocky9.2-8 @@ -7,9 +7,8 @@ RUN dnf -y update && \ dnf -y install poppler-utils xz-devel wget tar make which mailcap dnf-plugins-core compat-openssl11 && \ if [[ "$(uname -m)" == "aarch64" ]]; then dnf -y install cuda-11-8; fi && \ ARCH=$(uname -m) && if [[ "$ARCH" == "x86_64" ]] || [[ "$ARCH" == "amd64" ]]; then \ - dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo; else \ - dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/cross-linux-sbsa/cuda-rhel9-cross-linux-sbsa.repo; fi && \ - dnf -y install cuda-11-8 && \ + dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo && dnf -y install cuda-11-8; else \ + dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/cross-linux-sbsa/cuda-rhel9-cross-linux-sbsa.repo && dnf -y install cuda-cross-sbsa-11-8; fi && \ dnf -y install epel-release && \ # This is a fix for an bug where config-manager tries to modify a repo file with the incorrect name cp /etc/yum.repos.d/rocky-devel.repo /etc/yum.repos.d/Rocky-Devel.repo && \