Skip to content

Commit

Permalink
Upgrade cmake version to 3.22.1 to build triton (pytorch#1331)
Browse files Browse the repository at this point in the history
* Upgrade cmake version to 3.22.1 to build triton

* Pin patcheft version

* Fix comment typo
  • Loading branch information
huydhn committed Mar 6, 2023
1 parent 6bda65c commit 18c5017
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion common/install_conda.sh
Expand Up @@ -9,5 +9,7 @@ chmod +x Miniconda3-latest-Linux-x86_64.sh
bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda
rm Miniconda3-latest-Linux-x86_64.sh
export PATH=/opt/conda/bin:$PATH
conda install -y conda-build anaconda-client git ninja
# cmake-3.22.1 from conda, same as the one used by PyTorch CI. The system cmake
# is too old to build triton
conda install -y conda-build anaconda-client git ninja cmake=3.22.1
conda remove -y --force patchelf
4 changes: 3 additions & 1 deletion common/install_patchelf.sh
Expand Up @@ -2,7 +2,9 @@

set -ex

git clone https://github.com/NixOS/patchelf
# Pin the version to latest release 0.17.2, building newer commit starts
# to fail on the current image
git clone -b 0.17.2 --single-branch https://github.com/NixOS/patchelf
cd patchelf
sed -i 's/serial/parallel/g' configure.ac
./bootstrap.sh
Expand Down
5 changes: 3 additions & 2 deletions manywheel/Dockerfile
Expand Up @@ -21,9 +21,10 @@ RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm &
rpm -ivh epel-release-latest-7.noarch.rpm && \
rm -f epel-release-latest-7.noarch.rpm

# cmake-3.18.4 from pip
# cmake-3.22.1 from pip, same as the one used by PyTorch CI. cmake-3.18.4 is
# too old to build triton now
RUN yum install -y python3-pip && \
python3 -mpip install cmake==3.18.4 && \
python3 -mpip install cmake==3.22.1 && \
ln -s /usr/local/bin/cmake /usr/bin/cmake

RUN yum install -y autoconf aclocal automake make
Expand Down

0 comments on commit 18c5017

Please sign in to comment.