Repository navigation
Delete deprecated exir.capture API #1196
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: Test Native Engines | |
| on: | |
| pull_request: | |
| paths: | |
| - .github/workflows/test-native.yml | |
| - .github/workflows/_docker-image.yml | |
| - .ci/docker/** | |
| - .ci/scripts/test-native.sh | |
| - .ci/scripts/test_native_llm_runner.py | |
| - .gitmodules | |
| - CMakeLists.txt | |
| - install_requirements.py | |
| - install_requirements.sh | |
| - requirements-dev.txt | |
| - requirements-examples.txt | |
| - backends/cpu/CMakeLists.txt | |
| - backends/cpu/runtime/** | |
| - backends/native/** | |
| - backends/cadence/utils/FACTO | |
| - backends/test/suite/operators/test_linear.py | |
| - backends/vulkan/CMakeLists.txt | |
| - backends/vulkan/cmake/** | |
| - backends/vulkan/runtime/api/** | |
| - backends/vulkan/runtime/vk_api/** | |
| - backends/vulkan/runtime/graph/** | |
| - backends/vulkan/runtime/utils/** | |
| - backends/vulkan/runtime/gen_vulkan_spv.py | |
| - backends/vulkan/third-party/Vulkan-Headers | |
| - backends/vulkan/third-party/VulkanMemoryAllocator | |
| - backends/vulkan/third-party/volk | |
| - backends/vulkan_shared/CMakeLists.txt | |
| - backends/vulkan_shared/runtime/** | |
| - backends/xnnpack/CMakeLists.txt | |
| - backends/xnnpack/cmake/** | |
| - backends/xnnpack/runtime/profiling/** | |
| - backends/xnnpack/third-party/FXdiv | |
| - backends/xnnpack/third-party/XNNPACK | |
| - backends/xnnpack/third-party/cpuinfo | |
| - backends/xnnpack/third-party/pthreadpool | |
| - examples/models/llama/tokenizer/** | |
| - extension/llm/tokenizers | |
| - extension/llm/export/** | |
| - devtools/etdump/** | |
| - exir/** | |
| - configurations/** | |
| - extension/memory_allocator/** | |
| - extension/threadpool/** | |
| - kernels/** | |
| - runtime/** | |
| - third-party/** | |
| - tools/cmake/** | |
| - build/** | |
| - codegen/** | |
| - schema/** | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' && github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| docker-image: | |
| name: Resolve CI docker image | |
| uses: ./.github/workflows/_docker-image.yml | |
| test-native: | |
| name: native-${{ matrix.component }} | |
| needs: docker-image | |
| runs-on: mt-l-x86iavx512-8-64 | |
| container: | |
| image: ${{ needs.docker-image.outputs.docker-registry }}/ci-image:executorch-ubuntu-22.04-gcc11-${{ needs.docker-image.outputs.ci-docker-hash }} | |
| timeout-minutes: 60 | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| component: [runtime, cpu, ggml, vulkan] | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Fix workspace permissions | |
| run: sudo chown -R "$(id -u):$(id -g)" "${GITHUB_WORKSPACE}" | |
| - name: Checkout ExecuTorch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
| submodules: recursive | |
| persist-credentials: false | |
| - name: Build and test native ${{ matrix.component }} | |
| env: | |
| NATIVE_COMPONENT: ${{ matrix.component }} | |
| run: | | |
| set -exo pipefail | |
| eval "$(/opt/conda/bin/conda shell.bash hook)" | |
| CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") | |
| conda activate "${CONDA_ENV}" | |
| unset SCCACHE_BUCKET SCCACHE_S3_KEY_PREFIX | |
| export SCCACHE_DIR=/tmp/sccache | |
| packages=(libzip) | |
| if [[ "${NATIVE_COMPONENT}" == "vulkan" ]]; then | |
| packages+=(shaderc) | |
| fi | |
| conda create -y -p /tmp/native-deps -c conda-forge "${packages[@]}" | |
| export CMAKE_PREFIX_PATH="/tmp/native-deps:${CMAKE_PREFIX_PATH:-}" | |
| export PATH="/tmp/native-deps/bin:${PATH}" | |
| if [[ "${NATIVE_COMPONENT}" == "ggml" ]]; then | |
| ./install_requirements.sh --use-pt-pinned-commit | |
| # The LLM runner test and the op sample generator import executorch from | |
| # src/ without installing the wheel, so install their export-time | |
| # dependencies directly. | |
| pip install flatbuffers gguf ruamel.yaml tabulate \ | |
| "$(grep -E '^transformers\b' requirements-examples.txt)" | |
| fi | |
| CMAKE_BUILD_PARALLEL_LEVEL=8 bash .ci/scripts/test-native.sh "${NATIVE_COMPONENT}" |