File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ install_executorch() {
32
32
which pip
33
33
# Install executorch, this assumes that Executorch is checked out in the
34
34
# current directory.
35
- ./install_executorch.sh --pybind xnnpack " $@ "
35
+ ./install_executorch.sh " $@ "
36
36
# Just print out the list of packages for debugging
37
37
pip list
38
38
}
Original file line number Diff line number Diff line change @@ -207,14 +207,10 @@ def main(args):
207
207
use_pytorch_nightly = True
208
208
209
209
wants_pybindings_off , pybind_defines = _list_pybind_defines (args )
210
- if not wants_pybindings_off :
211
- if len (pybind_defines ) > 0 :
212
- # If the user explicitly provides a list of bindings, just use them
213
- cmake_args += pybind_defines
214
- else :
215
- # If the user has not set pybindings off but also has not provided
216
- # a list, then turn on xnnpack by default
217
- cmake_args .append ("-DEXECUTORCH_BUILD_XNNPACK=ON" )
210
+ if wants_pybindings_off :
211
+ cmake_args .append ("-DEXECUTORCH_BUILD_PYBIND=OFF" )
212
+ else :
213
+ cmake_args += pybind_defines
218
214
219
215
if args .clean :
220
216
clean ()
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ def openvino(cls) -> bool:
142
142
143
143
@classmethod
144
144
def xnnpack (cls ) -> bool :
145
- return cls ._is_cmake_arg_enabled ("EXECUTORCH_BUILD_XNNPACK" , default = False )
145
+ return cls ._is_cmake_arg_enabled ("EXECUTORCH_BUILD_XNNPACK" , default = True )
146
146
147
147
@classmethod
148
148
def training (cls ) -> bool :
@@ -730,6 +730,9 @@ def run(self):
730
730
"-DEXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT=ON" ,
731
731
]
732
732
733
+ if ShouldBuild .xnnpack ():
734
+ cmake_args += ["-DEXECUTORCH_BUILD_XNNPACK=ON" ]
735
+
733
736
if ShouldBuild .training ():
734
737
build_args += ["--target" , "_training_lib" ]
735
738
You can’t perform that action at this time.
0 commit comments