File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,7 @@ chmod +x Miniconda3-latest-Linux-x86_64.sh
99bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
1010rm Miniconda3-latest-Linux-x86_64.sh
1111export PATH=/opt/conda/bin:$PATH
12- conda install -y conda-build anaconda-client git ninja
12+ # cmake-3.22.1 from conda, same as the one used by PyTorch CI. The system cmake
13+ # is too old to build triton
14+ conda install -y conda-build anaconda-client git ninja cmake=3.22.1
1315conda remove -y --force patchelf
Original file line number Diff line number Diff line change 22
33set -ex
44
5- git clone https://github.com/NixOS/patchelf
5+ # Pin the version to latest release 0.17.2, building newer commit starts
6+ # to fail on the current image
7+ git clone -b 0.17.2 --single-branch https://github.com/NixOS/patchelf
68cd patchelf
79sed -i ' s/serial/parallel/g' configure.ac
810./bootstrap.sh
Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm &
2121 rpm -ivh epel-release-latest-7.noarch.rpm && \
2222 rm -f epel-release-latest-7.noarch.rpm
2323
24- # cmake-3.18.4 from pip
24+ # cmake-3.22.1 from pip, same as the one used by PyTorch CI. cmake-3.18.4 is
25+ # too old to build triton now
2526RUN yum install -y python3-pip && \
26- python3 -mpip install cmake==3.18.4 && \
27+ python3 -mpip install cmake==3.22.1 && \
2728 ln -s /usr/local/bin/cmake /usr/bin/cmake
2829
2930RUN yum install -y autoconf aclocal automake make
You can’t perform that action at this time.
0 commit comments