File tree Expand file tree Collapse file tree 6 files changed +19
-17
lines changed Expand file tree Collapse file tree 6 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ install_executorch() {
19
19
which pip
20
20
# Install executorch, this assumes that Executorch is checked out in the
21
21
# current directory
22
- pip install . --no-build-isolation
22
+ pip install . --no-build-isolation -v
23
23
# Just print out the list of packages for debugging
24
24
pip list
25
25
}
Original file line number Diff line number Diff line change 33
33
conda activate "${CONDA_ENV}"
34
34
35
35
BUILD_TOOL=${{ matrix.build-tool }}
36
+
36
37
# Setup MacOS dependencies as there is no Docker support on MacOS atm
37
- PYTHON_EXECUTABLE=python EXECUTORCH_BUILD_PYBIND=ON bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
38
+ PYTHON_EXECUTABLE=python \
39
+ EXECUTORCH_BUILD_PYBIND=ON \
40
+ .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
38
41
39
42
# Run pytest with coverage
40
43
pytest -n auto --cov=./ --cov-report=xml
59
62
BUILD_TOOL=${{ matrix.build-tool }}
60
63
61
64
bash .ci/scripts/setup-conda.sh
65
+
62
66
# Setup MacOS dependencies as there is no Docker support on MacOS atm
63
- PYTHON_EXECUTABLE=python ${CONDA_RUN} EXECUTORCH_BUILD_PYBIND=ON bash .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
67
+ PYTHON_EXECUTABLE=python \
68
+ EXECUTORCH_BUILD_PYBIND=ON \
69
+ CMAKE_ARGS="-DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON" \
70
+ ${CONDA_RUN} --no-capture-output \
71
+ .ci/scripts/setup-macos.sh "${BUILD_TOOL}"
64
72
65
73
# Run pytest with coverage
66
74
${CONDA_RUN} pytest -n auto --cov=./ --cov-report=xml
Original file line number Diff line number Diff line change @@ -206,7 +206,9 @@ jobs:
206
206
207
207
# build module for executorch.extension.pybindings.portable_lib
208
208
BUILD_TOOL=${{ matrix.build-tool }}
209
- PYTHON_EXECUTABLE=python EXECUTORCH_BUILD_PYBIND=ON bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
209
+ PYTHON_EXECUTABLE=python \
210
+ EXECUTORCH_BUILD_PYBIND=ON \
211
+ bash .ci/scripts/setup-linux.sh "${BUILD_TOOL}"
210
212
211
213
# see if we can import the module successfully
212
214
python -c "from executorch.extension.pybindings import portable_lib; print('success!')"
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ cmake_minimum_required(VERSION 3.19)
4
4
5
5
project (executorch_coreml_backend )
6
6
7
+ if (NOT CMAKE_CXX_STANDARD )
8
+ set (CMAKE_CXX_STANDARD 17 )
9
+ endif ()
10
+
7
11
# Source root directory for executorch.
8
12
if (NOT EXECUTORCH_ROOT )
9
13
set (EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR} /../../.. )
117
121
TARGET coremldelegate
118
122
APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-receiver-expr"
119
123
)
120
-
121
- set_property (
122
- TARGET coremldelegate
123
- PROPERTY CXX_STANDARD 17
124
- )
Original file line number Diff line number Diff line change 8
8
#import < Foundation/Foundation.h>
9
9
10
10
#import < numeric>
11
+ #import < optional>
11
12
#import < string>
12
13
#import < vector>
13
14
Original file line number Diff line number Diff line change @@ -39,14 +39,6 @@ say "Installing MPS Backend Requirements"
39
39
40
40
./backends/apple/mps/install_requirements.sh
41
41
42
- say " Installing Python Bindings"
43
-
44
- EXECUTORCH_BUILD_PYBIND=ON \
45
- BUCK=" $( which buck2) " \
46
- CMAKE_ARGS=" -DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON" \
47
- CMAKE_BUILD_PARALLEL_LEVEL=9 \
48
- pip install . --no-build-isolation -v
49
-
50
42
say " Exporting Models"
51
43
52
44
python3 -m examples.portable.scripts.export --model_name=" $MODEL_NAME " --segment_alignment=0x4000
You can’t perform that action at this time.
0 commit comments