Skip to content

Commit

Permalink
Update toolchain in CXX11-abi docker (#1709)
Browse files Browse the repository at this point in the history
To gcc-11, as older ones(gcc-8.4 and gcc-9.2) are not compatible with latest PyTorch nor with AVX512

Fixes pytorch/pytorch#120418
  • Loading branch information
malfet authored Feb 23, 2024
1 parent effa8b7 commit e5e1c88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manywheel/Dockerfile_cxx11-abi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e5e1c88

Please sign in to comment.