Introduce apply_torch_ops_aten_passes to test mul fusion e2e #3701
Workflow file for this run
This file contains hidden or 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
name: Build Presets | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- release/* | |
paths: | |
- .github/workflows/build-presets.yml | |
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: | |
apple: | |
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main | |
strategy: | |
fail-fast: false | |
matrix: | |
preset: [macos, ios, ios-simulator, pybind, llm] | |
with: | |
job-name: build | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
runner: macos-latest-xlarge | |
python-version: 3.12 | |
submodules: recursive | |
timeout: 90 | |
script: | | |
set -eux | |
${CONDA_RUN} ./install_requirements.sh > /dev/null | |
${CONDA_RUN} cmake --preset ${{ matrix.preset }} | |
${CONDA_RUN} cmake --build cmake-out -j$(( $(sysctl -n hw.ncpu) - 1 )) | |
linux: | |
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
strategy: | |
fail-fast: false | |
matrix: | |
preset: [linux, pybind, llm] | |
runner: [linux.2xlarge, linux.arm64.2xlarge] | |
docker-image: [executorch-ubuntu-22.04-clang12, executorch-ubuntu-22.04-gcc11-aarch64] | |
# Excluding specific runner + docker image combinations that don't make sense: | |
# - Excluding the ARM64 gcc image on the x86 runner (linux.2xlarge) | |
# - Excluding the x86 clang image on the ARM64 runner (linux.arm64.2xlarge) | |
exclude: | |
- runner: linux.2xlarge | |
docker-image: executorch-ubuntu-22.04-gcc11-aarch64 | |
- runner: linux.arm64.2xlarge | |
docker-image: executorch-ubuntu-22.04-clang12 | |
with: | |
job-name: build | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
runner: ${{ matrix.runner }} | |
docker-image: ${{ matrix.docker-image }} | |
submodules: recursive | |
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}" | |
./install_requirements.sh > /dev/null | |
cmake --preset ${{ matrix.preset }} | |
cmake --build cmake-out -j$(( $(nproc) - 1 )) | |
windows: | |
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main | |
strategy: | |
fail-fast: false | |
matrix: | |
preset: [pybind] | |
with: | |
job-name: build | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
submodules: recursive | |
timeout: 90 | |
script: | | |
set -eux | |
conda init powershell | |
powershell -Command "& { | |
\$ErrorActionPreference = 'Stop' | |
Set-PSDebug -Trace 1 | |
conda create --yes --quiet -n et python=3.12 | |
conda activate et | |
python install_requirements.py | |
cmake --preset ${{ matrix.preset }} | |
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1 | |
cmake --build cmake-out -j \$numCores | |
}" |