@@ -40,6 +40,42 @@ install_pip_dependencies() {
4040 popd || return
4141}
4242
43+ install_domains () {
44+ echo " Install torchvision and torchaudio"
45+ pip install --no-use-pep517 --user " git+https://github.com/pytorch/audio.git@${TORCHAUDIO_VERSION} "
46+ pip install --no-use-pep517 --user " git+https://github.com/pytorch/vision.git@${TORCHVISION_VERSION} "
47+ }
48+
49+ install_pytorch_and_domains () {
50+ pushd .ci/docker || return
51+ TORCH_VERSION=$( cat ci_commit_pins/pytorch.txt)
52+ popd || return
53+
54+ git clone https://github.com/pytorch/pytorch.git
55+
56+ # Fetch the target commit
57+ pushd pytorch || return
58+ git checkout " ${TORCH_VERSION} "
59+ git submodule update --init --recursive
60+
61+ export USE_DISTRIBUTED=1
62+ # Then build and install PyTorch
63+ python setup.py bdist_wheel
64+ pip install " $( echo dist/* .whl) "
65+
66+ # Grab the pinned audio and vision commits from PyTorch
67+ TORCHAUDIO_VERSION=$( cat .github/ci_commit_pins/audio.txt)
68+ export TORCHAUDIO_VERSION
69+ TORCHVISION_VERSION=$( cat .github/ci_commit_pins/vision.txt)
70+ export TORCHVISION_VERSION
71+
72+ install_domains
73+
74+ popd || return
75+ # Print sccache stats for debugging
76+ sccache --show-stats || true
77+ }
78+
4379install_flatc_from_source () {
4480 # NB: This function could be used to install flatbuffer from source
4581 pushd third-party/flatbuffers || return
@@ -59,17 +95,6 @@ install_flatc_from_source() {
5995 popd || return
6096}
6197
62- install_arm () {
63- # NB: This function could be used to install Arm dependencies
64- # Setup arm example environment (including TOSA tools)
65- git config --global user.email
" [email protected] " 66- git config --global user.name " Github Executorch"
67- bash examples/arm/setup.sh --i-agree-to-the-contained-eula
68-
69- # Test tosa_reference flow
70- source examples/arm/ethos-u-scratch/setup_path.sh
71- }
72-
7398build_executorch_runner_buck2 () {
7499 # Build executorch runtime with retry as this step is flaky on macos CI
75100 retry buck2 build //examples/portable/executor_runner:executor_runner
0 commit comments