Skip to content

Commit

Permalink
centos now installs cmake from conda (#48035)
Browse files Browse the repository at this point in the history
Summary:
For the same reason that ubuntu builds need conda cmake to find mkl.

CC jaglinux

Pull Request resolved: #48035

Reviewed By: zhangguanheng66

Differential Revision: D25246723

Pulled By: malfet

fbshipit-source-id: 9dac130eecd2f76764d8027b888404c87e7a954a
  • Loading branch information
jeffdaily authored and facebook-github-bot committed Dec 1, 2020
1 parent 3ceec73 commit 5f181e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .jenkins/pytorch/common.sh
Expand Up @@ -129,13 +129,18 @@ fi
if [[ "$BUILD_ENVIRONMENT" == *pytorch-xla-linux-bionic* ]] || \
[[ "$BUILD_ENVIRONMENT" == *pytorch-linux-xenial-cuda9-cudnn7-py2* ]] || \
[[ "$BUILD_ENVIRONMENT" == *pytorch-linux-xenial-cuda10.1-cudnn7-py3* ]] || \
[[ "$BUILD_ENVIRONMENT" == *pytorch-*centos* ]] || \
[[ "$BUILD_ENVIRONMENT" == *pytorch-linux-bionic* ]]; then
if ! which conda; then
echo "Expected ${BUILD_ENVIRONMENT} to use conda, but 'which conda' returns empty"
exit 1
else
conda install -q -y cmake
fi
if [[ "$BUILD_ENVIRONMENT" == *pytorch-*centos* ]]; then
# cmake3 package will conflict with conda cmake
sudo yum -y remove cmake3 || true
fi
fi
retry () {
Expand Down

0 comments on commit 5f181e2

Please sign in to comment.