Skip to content

Commit 753da9a

Browse files
authored
Create Arm64 Graviton instance docker image (#9199)
Summary: - Let's see if we can set this up first. In follow up PRs, here's the plan: - We will add a few CI jobs to run on this docker image and on Arm64 Graviton instance. - Will migrate some jobs from macOS runners to this.
1 parent 28a8954 commit 753da9a

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.ci/docker/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ case "${IMAGE_NAME}" in
2929
LINTRUNNER=""
3030
CLANG_VERSION=12
3131
;;
32+
executorch-ubuntu-22.04-gcc11-aarch64)
33+
LINTRUNNER=""
34+
GCC_VERSION=11
35+
;;
3236
executorch-ubuntu-22.04-linter)
3337
LINTRUNNER=yes
3438
CLANG_VERSION=12

.ci/docker/common/install_conda.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
1313
install_miniconda() {
1414
BASE_URL="https://repo.anaconda.com/miniconda"
1515
CONDA_FILE="Miniconda3-py${PYTHON_VERSION//./}_${MINICONDA_VERSION}-Linux-x86_64.sh"
16+
if [[ $(uname -m) == "aarch64" ]]; then
17+
CONDA_FILE="Miniconda3-py${PYTHON_VERSION//./}_${MINICONDA_VERSION}-Linux-aarch64.sh"
18+
fi
1619

1720
mkdir -p /opt/conda
1821
chown ci-user:ci-user /opt/conda
@@ -36,7 +39,7 @@ install_python() {
3639

3740
# From https://github.com/pytorch/pytorch/blob/main/.ci/docker/common/install_conda.sh
3841
if [[ $(uname -m) == "aarch64" ]]; then
39-
conda_install "openblas==0.3.28=*openmp*"
42+
conda_install "openblas==0.3.29=*openmp*" -c conda-forge
4043
else
4144
conda_install mkl=2022.1.0 mkl-include=2022.1.0
4245
fi

.github/workflows/docker-builds.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,25 @@ env:
2727

2828
jobs:
2929
docker-build:
30-
runs-on: [self-hosted, linux.2xlarge]
3130
timeout-minutes: 240
3231
strategy:
3332
fail-fast: false
3433
matrix:
34+
runner: [linux.2xlarge]
35+
docker-image-name: [
36+
executorch-ubuntu-22.04-gcc9,
37+
executorch-ubuntu-22.04-clang12,
38+
executorch-ubuntu-22.04-linter,
39+
executorch-ubuntu-22.04-arm-sdk,
40+
executorch-ubuntu-22.04-qnn-sdk,
41+
executorch-ubuntu-22.04-mediatek-sdk,
42+
executorch-ubuntu-22.04-clang12-android
43+
]
3544
include:
36-
- docker-image-name: executorch-ubuntu-22.04-gcc9
37-
- docker-image-name: executorch-ubuntu-22.04-clang12
38-
- docker-image-name: executorch-ubuntu-22.04-linter
39-
- docker-image-name: executorch-ubuntu-22.04-arm-sdk
40-
- docker-image-name: executorch-ubuntu-22.04-qnn-sdk
41-
- docker-image-name: executorch-ubuntu-22.04-mediatek-sdk
42-
- docker-image-name: executorch-ubuntu-22.04-clang12-android
45+
- docker-image-name: executorch-ubuntu-22.04-gcc11-aarch64
46+
runner: linux.arm64.2xlarge
47+
48+
runs-on: [self-hosted, "${{ matrix.runner }}"]
4349
env:
4450
DOCKER_IMAGE: 308535385114.dkr.ecr.us-east-1.amazonaws.com/executorch/${{ matrix.docker-image-name }}
4551
steps:

0 commit comments

Comments
 (0)