File tree Expand file tree Collapse file tree 5 files changed +8
-12
lines changed Expand file tree Collapse file tree 5 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ if [[ "$BUILD_TOOL" == "cmake" ]]; then
21
21
source .ci/scripts/setup-vulkan-linux-deps.sh
22
22
23
23
PYTHON_EXECUTABLE=python \
24
- EXECUTORCH_BUILD_PYBIND=ON \
25
- CMAKE_ARGS=" -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
24
+ CMAKE_ARGS=" -DEXECUTORCH_BUILD_PYBIND=ON -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
26
25
.ci/scripts/setup-linux.sh " $@ "
27
26
28
27
# Install llama3_2_vision dependencies.
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ trap 'rm -rfv ${TMP_DIR}' EXIT
21
21
22
22
# Setup MacOS dependencies as there is no Docker support on MacOS atm
23
23
PYTHON_EXECUTABLE=python \
24
- EXECUTORCH_BUILD_PYBIND=ON \
25
- CMAKE_ARGS=" -DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
24
+ CMAKE_ARGS=" -DEXECUTORCH_BUILD_PYBIND=ON -DEXECUTORCH_BUILD_COREML=ON -DEXECUTORCH_BUILD_MPS=ON -DEXECUTORCH_BUILD_XNNPACK=ON -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON" \
26
25
${CONDA_RUN} --no-capture-output \
27
26
.ci/scripts/setup-macos.sh " $@ "
28
27
Original file line number Diff line number Diff line change @@ -365,8 +365,7 @@ jobs:
365
365
# build module for executorch.extension.pybindings.portable_lib
366
366
BUILD_TOOL="cmake"
367
367
PYTHON_EXECUTABLE=python \
368
- EXECUTORCH_BUILD_XNNPACK=ON \
369
- EXECUTORCH_BUILD_PYBIND=ON \
368
+ CMAKE_ARGS="-DEXECUTORCH_BUILD_PYBIND=ON -DEXECUTORCH_BUILD_XNNPACK=ON" \
370
369
bash .ci/scripts/setup-linux.sh --build-tool "${BUILD_TOOL}"
371
370
372
371
# see if we can import the module successfully
@@ -504,7 +503,7 @@ jobs:
504
503
505
504
# Setup MacOS dependencies as there is no Docker support on MacOS atm
506
505
PYTHON_EXECUTABLE=python \
507
- EXECUTORCH_BUILD_PYBIND=ON \
506
+ CMAKE_ARGS="-DEXECUTORCH_BUILD_PYBIND=ON" \
508
507
EXECUTORCH_BUILD_ARM_BAREMETAL=ON \
509
508
.ci/scripts/setup-linux.sh --build-tool "${BUILD_TOOL}"
510
509
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ jobs:
261
261
262
262
# build module for executorch.extension.pybindings.portable_lib
263
263
BUILD_TOOL=${{ matrix.build-tool }}
264
- EXECUTORCH_BUILD_PYBIND=ON PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh --build-tool "${BUILD_TOOL}"
264
+ CMAKE_ARGS="-DEXECUTORCH_BUILD_PYBIND=ON" PYTHON_EXECUTABLE=python ${CONDA_RUN} bash .ci/scripts/setup-macos.sh --build-tool "${BUILD_TOOL}"
265
265
266
266
# see if we can import the module successfully
267
267
${CONDA_RUN} python -c "from executorch.extension.pybindings import portable_lib; print('success!')"
Original file line number Diff line number Diff line change @@ -111,7 +111,9 @@ def pybindings(cls) -> bool:
111
111
112
112
@classmethod
113
113
def training (cls ) -> bool :
114
- return cls ._is_cmake_arg_enabled ("EXECUTORCH_BUILD_TRAINING" , default = False )
114
+ return cls ._is_cmake_arg_enabled (
115
+ "EXECUTORCH_BUILD_EXTENSION_TRAINING" , default = False
116
+ )
115
117
116
118
@classmethod
117
119
def llama_custom_ops (cls ) -> bool :
@@ -693,9 +695,6 @@ def run(self):
693
695
"-DEXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT=ON" ,
694
696
]
695
697
if ShouldBuild .training ():
696
- cmake_args += [
697
- "-DEXECUTORCH_BUILD_EXTENSION_TRAINING=ON" ,
698
- ]
699
698
build_args += ["--target" , "_training_lib" ]
700
699
build_args += ["--target" , "portable_lib" ]
701
700
# To link backends into the portable_lib target, callers should
You can’t perform that action at this time.
0 commit comments