File tree Expand file tree Collapse file tree 10 files changed +264
-368
lines changed
Expand file tree Collapse file tree 10 files changed +264
-368
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ if [[ "$BUILD_TOOL" == "cmake" ]]; then
2121 source .ci/scripts/setup-vulkan-linux-deps.sh
2222
2323 PYTHON_EXECUTABLE=python \
24- CMAKE_ARGS=" -DEXECUTORCH_BUILD_PYBIND=ON -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
24+ # We need the runner to test the built library.
25+ CMAKE_ARGS=" -DEXECUTORCH_BUILD_EXECUTOR_RUNNER=ON" \
2526 .ci/scripts/setup-linux.sh " $@ "
2627
2728 .ci/scripts/unittest-linux-cmake.sh
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ trap 'rm -rfv ${TMP_DIR}' EXIT
2121
2222# Setup MacOS dependencies as there is no Docker support on MacOS atm
2323PYTHON_EXECUTABLE=python \
24- CMAKE_ARGS=" -DEXECUTORCH_BUILD_PYBIND=ON -DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
24+ # We need the runner to test the built library.
25+ CMAKE_ARGS=" -DEXECUTORCH_BUILD_EXECUTOR_RUNNER=ON" \
2526${CONDA_RUN} --no-capture-output \
2627.ci/scripts/setup-macos.sh " $@ "
2728
Original file line number Diff line number Diff line change 1111# Ensure that CMAKE_ARGS is defined before referencing it. Defaults to empty
1212# if not defined.
1313export CMAKE_ARGS=" ${CMAKE_ARGS:- } "
14-
15- # Link the XNNPACK backend into the pybindings runtime so that users can execute
16- # ExecuTorch programs that delegate to it.
17- CMAKE_ARGS=" ${CMAKE_ARGS} -DEXECUTORCH_BUILD_PYBIND=ON -DEXECUTORCH_BUILD_XNNPACK=ON"
Original file line number Diff line number Diff line change 99# any variables so that subprocesses will see them.
1010
1111source " ${GITHUB_WORKSPACE} /${REPOSITORY} /.ci/scripts/wheel/envvar_base.sh"
12-
13- # When building for macOS, link additional backends into the pybindings runtime.
14- CMAKE_ARGS=" ${CMAKE_ARGS} -DEXECUTORCH_BUILD_COREML=ON"
15- CMAKE_ARGS=" ${CMAKE_ARGS} -DEXECUTORCH_BUILD_MPS=ON"
Original file line number Diff line number Diff line change @@ -289,30 +289,6 @@ jobs:
289289 # Build and test coreml delegate
290290 PYTHON_EXECUTABLE=python ${CONDA_RUN} bash backends/apple/coreml/scripts/build_all.sh
291291
292- test-pybind-build-macos :
293- name : test-pybind-build-macos
294- uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
295- strategy :
296- matrix :
297- include :
298- - build-tool : cmake
299- fail-fast : false
300- with :
301- runner : macos-m1-stable
302- python-version : ' 3.11'
303- submodules : ' recursive'
304- ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
305- timeout : 180
306- script : |
307- bash .ci/scripts/setup-conda.sh
308-
309- # build module for executorch.extension.pybindings.portable_lib
310- BUILD_TOOL=${{ matrix.build-tool }}
311- CMAKE_ARGS="-DEXECUTORCH_BUILD_PYBIND=ON" PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh --build-tool "${BUILD_TOOL}"
312-
313- # see if we can import the module successfully
314- ${CONDA_RUN} python -c "from executorch.extension.pybindings import portable_lib; print('success!')"
315-
316292 test-static-llama-ane :
317293 name : test-static-llama-ane
318294 uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
You can’t perform that action at this time.
0 commit comments