Skip to content

Commit

Permalink
Support PyTorch ROCm CI on Ubuntu18.04 (#31886)
Browse files Browse the repository at this point in the history
Summary:
In order to support Ubuntu18.04, some changes to the scripts are required.
* install dependencies with -y flag
* mark install noninteractive
* install some required dependencies (gpg-agent, python3-distutils, libidn11)
Pull Request resolved: pytorch/pytorch#31886

Differential Revision: D19300586

Pulled By: bddppq

fbshipit-source-id: d7fb815a3845697ce63af191a5bc449d661ff1de
  • Loading branch information
iotamudelta authored and facebook-github-bot committed Jan 7, 2020
1 parent 2f5eefe commit 4ee9c56
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/caffe2/jenkins/common/install_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -ex

if [[ "$CLANG_VERSION" == "6.0" || "$CLANG_VERSION" == "7" || "$CLANG_VERSION" == "8" ]]; then
apt-get update
apt-get install -y --no-install-recommends software-properties-common wget
apt-get install -y --no-install-recommends software-properties-common wget gpg-agent
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
if [[ "$UBUNTU_VERSION" == 16.04 ]]; then
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-${CLANG_VERSION} main"
Expand Down
2 changes: 2 additions & 0 deletions docker/caffe2/jenkins/common/install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ install_ubuntu() {
;;
3.6)
install_ubuntu_deadsnakes python3.6-dev
apt-get install -y python3-distutils
PYTHON=python3.6
INSTALL_SETUPTOOLS=yes
;;
3.7)
install_ubuntu_deadsnakes python3.7-dev
apt-get install -y python3-distutils
PYTHON=python3.7
INSTALL_SETUPTOOLS=yes
;;
Expand Down
7 changes: 5 additions & 2 deletions docker/caffe2/jenkins/common/install_rocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ install_ubuntu() {
apt-get install -y libopenblas-dev

# Need the libc++1 and libc++abi1 libraries to allow torch._C to load at runtime
apt-get install libc++1
apt-get install libc++abi1
apt-get install -y libc++1
apt-get install -y libc++abi1

# cmake needs libidn11
apt-get install -y libidn11

DEB_ROCM_REPO=http://repo.radeon.com/rocm/apt/debian
# Add rocm repository
Expand Down
3 changes: 3 additions & 0 deletions docker/caffe2/jenkins/ubuntu-rocm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
ARG UBUNTU_VERSION
FROM ubuntu:${UBUNTU_VERSION}

# set this to noninteractive so that the installer knows
ENV DEBIAN_FRONTEND=noninteractive

# Include BUILD_ENVIRONMENT environment variable in image
ARG BUILD_ENVIRONMENT
ENV BUILD_ENVIRONMENT ${BUILD_ENVIRONMENT}
Expand Down

0 comments on commit 4ee9c56

Please sign in to comment.