@@ -138,30 +138,6 @@ aten,aten::clone.out" \
138138 rm " ./mv2.pte"
139139}
140140
141- test_cmake_select_ops_add_in_list () {
142- echo " Exporting add_mul"
143- ${PYTHON_EXECUTABLE} -m examples.portable.scripts.export --model_name=" add_mul"
144- local example_dir=examples/selective_build
145- local build_dir=cmake-out/${example_dir}
146- # rm -rf ${build_dir}
147- retry cmake -DCMAKE_BUILD_TYPE=Debug \
148- -DEXECUTORCH_SELECT_OPS_LIST=" aten::add.out,aten::mm.out" \
149- # -DEXECUTORCH_SELECTIVE_BUILD_DTYPE=True \
150- -DCMAKE_INSTALL_PREFIX=cmake-out \
151- -DPYTHON_EXECUTABLE=" $PYTHON_EXECUTABLE " \
152- -B${build_dir} \
153- ${example_dir}
154-
155- echo " Building ${example_dir} "
156- cmake --build ${build_dir} -j9 --config Debug
157-
158- echo ' Running selective build test'
159- ${build_dir} /selective_build_test --model_path=" ./add_mul.pte"
160-
161- # echo "Removing add_mul.pte"
162- # rm "./add_mul.pte"
163- }
164-
165141test_cmake_select_ops_in_yaml () {
166142 echo " Exporting custom_op_1"
167143 ${PYTHON_EXECUTABLE} -m examples.portable.custom_ops.custom_ops_1
@@ -182,7 +158,7 @@ test_cmake_select_ops_in_yaml() {
182158 ${build_dir} /selective_build_test --model_path=" ./custom_ops_1.pte"
183159
184160 echo " Removing custom_ops_1.pte"
185- # rm "./custom_ops_1.pte"
161+ rm " ./custom_ops_1.pte"
186162}
187163
188164test_cmake_select_ops_in_model () {
230206if [[ $1 == " cmake" ]];
231207then
232208 cmake_install_executorch_lib $CMAKE_BUILD_TYPE
233- # test_cmake_select_all_ops
234- # test_cmake_select_ops_in_list
235- # test_cmake_select_ops_in_yaml
236- # test_cmake_select_ops_add_in_list
209+ test_cmake_select_all_ops
210+ test_cmake_select_ops_in_list
211+ test_cmake_select_ops_in_yaml
237212 test_cmake_select_ops_in_model
238213elif [[ $1 == " buck2" ]];
239214then
0 commit comments