Qualcomm: cap inf replacement value to fix 16a16w accuracy regression #10206
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: Cadence Build & Test | |
| on: | |
| schedule: | |
| - cron: 0 8 * * * | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| tags: | |
| - ciflow/nightly/* | |
| pull_request: | |
| pull_request_target: | |
| types: [labeled] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Same-repo PRs run on pull_request, which reads the PR's own workflow AND code | |
| # -- so CI changes, new test jobs, code, and tests are all validated pre-merge. | |
| # Fork PRs can't get credentials (OIDC) on pull_request, so Meta-exported forks | |
| # (labeled CLA Signed + meta-exported) run on pull_request_target instead. The | |
| # run condition is inlined per job (GitHub Actions has no YAML anchors and env | |
| # is unavailable in job-level if), so keep the copies in sync. | |
| cpu-build: | |
| if: >- | |
| github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || | |
| (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && | |
| contains(github.event.pull_request.labels.*.name, 'CLA Signed') && contains(github.event.pull_request.labels.*.name, 'meta-exported')) | |
| uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
| permissions: | |
| id-token: write | |
| contents: read | |
| with: | |
| job-name: build | |
| runner: linux.2xlarge | |
| docker-image: ci-image:executorch-ubuntu-22.04-clang12 | |
| submodules: recursive | |
| ref: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.pull_request.head.sha || github.sha }} | |
| timeout: 90 | |
| upload-artifact: cadence-runner-build | |
| 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 | |
| bash backends/cadence/build_cadence_runner.sh | |
| # Copy runner binary to artifact dir for downstream test jobs | |
| cp cmake-out/backends/cadence/cadence_runner "${RUNNER_ARTIFACT_DIR}/" | |
| cpu-test: | |
| needs: cpu-build | |
| if: >- | |
| github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || | |
| (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && | |
| contains(github.event.pull_request.labels.*.name, 'CLA Signed') && contains(github.event.pull_request.labels.*.name, 'meta-exported')) | |
| permissions: | |
| id-token: write | |
| contents: read | |
| uses: ./.github/workflows/_test_cadence.yml | |
| with: | |
| ref: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.pull_request.head.sha || github.sha }} | |
| # Cross-compile cadence_executor_runner for each Cadence Xtensa core, one job | |
| # per backend so they show as separate lines (no matrix grouping). Shared logic | |
| # lives in _xtensa_build.yml. fusion_g3 is omitted until the upstream fusion_g3 | |
| # <-> nnlib-FusionG3 API skew is fixed (its runner does not link). | |
| hifi-build: | |
| if: >- | |
| github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || | |
| (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && | |
| contains(github.event.pull_request.labels.*.name, 'CLA Signed') && contains(github.event.pull_request.labels.*.name, 'meta-exported')) | |
| permissions: | |
| id-token: write | |
| contents: read | |
| uses: ./.github/workflows/_xtensa_build.yml | |
| with: | |
| backend: hifi4 | |
| ref: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.pull_request.head.sha || github.sha }} | |
| vision-build: | |
| if: >- | |
| github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || | |
| (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && | |
| contains(github.event.pull_request.labels.*.name, 'CLA Signed') && contains(github.event.pull_request.labels.*.name, 'meta-exported')) | |
| permissions: | |
| id-token: write | |
| contents: read | |
| uses: ./.github/workflows/_xtensa_build.yml | |
| with: | |
| backend: vision | |
| ref: ${{ (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.pull_request.head.sha || github.sha }} |