From 49719ef243669b6bf65fa851c9ee9befe227bdd9 Mon Sep 17 00:00:00 2001 From: Andrey Talman Date: Mon, 18 Mar 2024 15:28:50 -0400 Subject: [PATCH] Update toolchain in CXX11-abi docker (#1709) (#1743) To gcc-11, as older ones(gcc-8.4 and gcc-9.2) are not compatible with latest PyTorch nor with AVX512 Fixes https://github.com/pytorch/pytorch/issues/120418 Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com> --- manywheel/Dockerfile_cxx11-abi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manywheel/Dockerfile_cxx11-abi b/manywheel/Dockerfile_cxx11-abi index facaa5494..8ab909f2b 100644 --- a/manywheel/Dockerfile_cxx11-abi +++ b/manywheel/Dockerfile_cxx11-abi @@ -3,6 +3,7 @@ FROM centos:8 as base ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 +ENV PATH /opt/rh/gcc-toolset-11/root/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # change to a valid repo RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*.repo @@ -11,7 +12,8 @@ RUN sed -i 's|enabled=0|enabled=1|g' /etc/yum.repos.d/CentOS-Linux-PowerTools.re RUN yum -y update RUN yum install -y wget curl perl util-linux xz bzip2 git patch which zlib-devel -RUN yum install -y autoconf automake make cmake gdb gcc gcc-c++ +RUN yum install -y autoconf automake make cmake gdb gcc-toolset-11-gcc-c++ + FROM base as openssl ADD ./common/install_openssl.sh install_openssl.sh