From d47ab5854d784206c3c25a246071f4f7d8cd0d70 Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Wed, 5 Jul 2023 20:30:56 -0700 Subject: [PATCH 1/2] Fix magma installation inside docker container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure, what weird version of `wget` is getting installed, but attempt to download https://anaconda.org/pytorch/magma-cuda121/2.6.1/download/linux-64/magma-cuda121-2.6.1-1.tar.bz2 fails with: ``` --2023-07-06 03:18:38-- https://anaconda.org/pytorch/magma-cuda121/2.6.1/download/linux-64/magma-cuda121-2.6.1-1.tar.bz2 Resolving anaconda.org (anaconda.org)... 104.17.93.24, 104.17.92.24, 2606:4700::6811:5d18, ... Connecting to anaconda.org (anaconda.org)|104.17.93.24|:443... connected. ERROR: cannot verify anaconda.org's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=E1’: Issued certificate has expired. To connect to anaconda.org insecurely, use `--no-check-certificate'. ``` --- common/install_magma.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/install_magma.sh b/common/install_magma.sh index b524c920e..efaff052e 100644 --- a/common/install_magma.sh +++ b/common/install_magma.sh @@ -16,7 +16,7 @@ function do_install() { set -x tmp_dir=$(mktemp -d) pushd ${tmp_dir} - wget -q https://anaconda.org/pytorch/magma-cuda${cuda_version_nodot}/${MAGMA_VERSION}/download/linux-64/${magma_archive} + curl -OLs https://anaconda.org/pytorch/magma-cuda${cuda_version_nodot}/${MAGMA_VERSION}/download/linux-64/${magma_archive} tar -xvf "${magma_archive}" mkdir -p "${cuda_dir}/magma" mv include "${cuda_dir}/magma/include" From 5e16d9c4bc40e249e0618aa7a053f8a28340b436 Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Thu, 6 Jul 2023 10:17:22 -0700 Subject: [PATCH 2/2] And use CentOS:7 --- manywheel/Dockerfile | 4 ++-- manywheel/build_docker.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manywheel/Dockerfile b/manywheel/Dockerfile index b070ae8f8..4e7ff3cf0 100644 --- a/manywheel/Dockerfile +++ b/manywheel/Dockerfile @@ -1,8 +1,8 @@ # syntax = docker/dockerfile:experimental ARG ROCM_VERSION=3.7 -ARG BASE_CUDA_VERSION=10.1 +ARG BASE_CUDA_VERSION=11.8 -ARG GPU_IMAGE=nvidia/cuda:${BASE_CUDA_VERSION}-devel-centos7 +ARG GPU_IMAGE=centos:7 FROM centos:7 as base ENV LC_ALL en_US.UTF-8 diff --git a/manywheel/build_docker.sh b/manywheel/build_docker.sh index f6e8988a4..38d043ff4 100755 --- a/manywheel/build_docker.sh +++ b/manywheel/build_docker.sh @@ -33,7 +33,7 @@ case ${GPU_ARCH_TYPE} in DOCKER_TAG=cuda${GPU_ARCH_VERSION} LEGACY_DOCKER_IMAGE=${DOCKER_REGISTRY}/pytorch/manylinux-cuda${GPU_ARCH_VERSION//./} # Keep this up to date with the minimum version of CUDA we currently support - GPU_IMAGE=nvidia/cuda:11.4.3-devel-centos7 + GPU_IMAGE=centos:7 DOCKER_GPU_BUILD_ARG="--build-arg BASE_CUDA_VERSION=${GPU_ARCH_VERSION} --build-arg DEVTOOLSET_VERSION=9" ;; rocm)