Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on "Update pytorch nightly pin to 03/13"
## Context Updating PyTorch nightly pin to 03/13 to capture dynamic shape support in ATen Vulkan (pytorch/pytorch#121598). Previous upate was to 03/12 (#2370) so this should not be a risky change. Also, according to PyTorch nightly HUD (https://hud.pytorch.org/hud/pytorch/pytorch/nightly) this 03/13 nightly is all green while 03/12 nightly had some failures. Differential Revision: [D54870270](https://our.internmc.facebook.com/intern/diff/D54870270) [ghstack-poisoned]
- Loading branch information
Showing
337 changed files
with
12,705 additions
and
2,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5b90074540577267c29f5f784be123ee54f6491d | ||
6b5259e50704aede43c87fed33f64224f9047087 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/bin/bash | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
set -ex | ||
|
||
# Double check if the NDK version is set | ||
[ -n "${ANDROID_NDK_VERSION}" ] | ||
|
||
install_prerequiresites() { | ||
apt-get update | ||
|
||
# NB: Need OpenJDK 17 at the minimum | ||
apt-get install -y --no-install-recommends \ | ||
openjdk-17-jdk \ | ||
ca-certificates-java \ | ||
ant | ||
|
||
# Cleanup package manager | ||
apt-get autoclean && apt-get clean | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
} | ||
|
||
install_ndk() { | ||
NDK_INSTALLATION_DIR=/opt/ndk | ||
mkdir -p "${NDK_INSTALLATION_DIR}" | ||
|
||
pushd /tmp | ||
# The NDK installation is cached on ossci-android S3 bucket | ||
curl -Os --retry 3 "https://ossci-android.s3.amazonaws.com/android-ndk-${ANDROID_NDK_VERSION}-linux.zip" | ||
unzip -qo "android-ndk-${ANDROID_NDK_VERSION}-linux.zip" | ||
|
||
# Print the content for manual verification | ||
ls -lah "android-ndk-${ANDROID_NDK_VERSION}" | ||
mv "android-ndk-${ANDROID_NDK_VERSION}"/* "${NDK_INSTALLATION_DIR}" | ||
|
||
popd | ||
} | ||
|
||
install_cmdtools() { | ||
CMDTOOLS_FILENAME=commandlinetools-linux-11076708_latest.zip | ||
|
||
pushd /tmp | ||
# The file is cached on ossci-android S3 bucket | ||
curl -Os --retry 3 "https://ossci-android.s3.us-west-1.amazonaws.com/${CMDTOOLS_FILENAME}" | ||
unzip -qo "${CMDTOOLS_FILENAME}" -d /opt | ||
|
||
ls -lah /opt/cmdline-tools/bin | ||
popd | ||
} | ||
|
||
install_sdk() { | ||
SDK_INSTALLATION_DIR=/opt/android/sdk | ||
mkdir -p "${SDK_INSTALLATION_DIR}" | ||
|
||
# These are the tools needed to build Android apps | ||
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "platforms;android-34" | ||
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "build-tools;33.0.1" | ||
# And some more tools for future emulator tests | ||
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "platform-tools" | ||
yes | /opt/cmdline-tools/bin/sdkmanager --sdk_root="${SDK_INSTALLATION_DIR}" --install "tools" | ||
} | ||
|
||
install_prerequiresites | ||
install_ndk | ||
install_cmdtools | ||
install_sdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build ExecuTorch Android demo apps | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/* | ||
pull_request: | ||
paths: | ||
- .ci/docker/** | ||
- .github/workflows/android.yml | ||
- install_requirements.sh | ||
- examples/demo-apps/** | ||
- extension/module/** | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-demo-android: | ||
name: test-demo-android | ||
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main | ||
strategy: | ||
matrix: | ||
include: | ||
- build-tool: buck2 | ||
with: | ||
# NB: The example model dl3 requires lots of memory (T161064121) | ||
runner: linux.12xlarge | ||
docker-image: executorch-ubuntu-22.04-clang12-android | ||
submodules: 'true' | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | ||
timeout: 90 | ||
script: | | ||
set -eux | ||
# The generic Linux job chooses to use base env, not the one setup by the image | ||
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") | ||
conda activate "${CONDA_ENV}" | ||
BUILD_TOOL=${{ matrix.build-tool }} | ||
# Setup MacOS dependencies as there is no Docker support on MacOS atm | ||
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}" | ||
# Build Android demo app | ||
bash build/test_android_ci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.