Skip to content

Commit bcd1f7b

Browse files
authored
Fix magma installation inside docker container (#1447)
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'. ``` Also, switch from NVIDIA container to a stock `centos:7` one, to make containers slimmer and fit on standard GitHub Actions runners.
1 parent 70bc20d commit bcd1f7b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

common/install_magma.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function do_install() {
1616
set -x
1717
tmp_dir=$(mktemp -d)
1818
pushd ${tmp_dir}
19-
wget -q https://anaconda.org/pytorch/magma-cuda${cuda_version_nodot}/${MAGMA_VERSION}/download/linux-64/${magma_archive}
19+
curl -OLs https://anaconda.org/pytorch/magma-cuda${cuda_version_nodot}/${MAGMA_VERSION}/download/linux-64/${magma_archive}
2020
tar -xvf "${magma_archive}"
2121
mkdir -p "${cuda_dir}/magma"
2222
mv include "${cuda_dir}/magma/include"

manywheel/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# syntax = docker/dockerfile:experimental
22
ARG ROCM_VERSION=3.7
3-
ARG BASE_CUDA_VERSION=10.1
3+
ARG BASE_CUDA_VERSION=11.8
44

5-
ARG GPU_IMAGE=nvidia/cuda:${BASE_CUDA_VERSION}-devel-centos7
5+
ARG GPU_IMAGE=centos:7
66
FROM centos:7 as base
77

88
ENV LC_ALL en_US.UTF-8

manywheel/build_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ case ${GPU_ARCH_TYPE} in
3333
DOCKER_TAG=cuda${GPU_ARCH_VERSION}
3434
LEGACY_DOCKER_IMAGE=${DOCKER_REGISTRY}/pytorch/manylinux-cuda${GPU_ARCH_VERSION//./}
3535
# Keep this up to date with the minimum version of CUDA we currently support
36-
GPU_IMAGE=nvidia/cuda:11.4.3-devel-centos7
36+
GPU_IMAGE=centos:7
3737
DOCKER_GPU_BUILD_ARG="--build-arg BASE_CUDA_VERSION=${GPU_ARCH_VERSION} --build-arg DEVTOOLSET_VERSION=9"
3838
;;
3939
rocm)

0 commit comments

Comments
 (0)