@@ -110,32 +110,29 @@ test_cmake_select_all_ops() {
110110}
111111
112112test_cmake_select_ops_in_list () {
113- echo " Exporting MobilenetV2"
114- ${PYTHON_EXECUTABLE} -m examples.portable.scripts.export --model_name=" mv2"
113+ # echo "Exporting MobilenetV2"
114+ # ${PYTHON_EXECUTABLE} -m examples.portable.scripts.export --model_name="mv2"
115115
116116 local example_dir=examples/selective_build
117117 local build_dir=cmake-out/${example_dir}
118118 # set MAX_KERNEL_NUM=22: 19 primops, add, mul
119119 rm -rf ${build_dir}
120120 retry cmake -DCMAKE_BUILD_TYPE=Release \
121- -DMAX_KERNEL_NUM=22 \
122- -DEXECUTORCH_SELECT_OPS_LIST=" aten::convolution.out,\
123- aten::_native_batch_norm_legit_no_training.out,aten::hardtanh.out,aten::add.out,\
124- aten::mean.out,aten::view_copy.out,aten::permute_copy.out,aten::addmm.out,\
125- aten,aten::clone.out" \
121+ -DEXECUTORCH_SELECT_OPS_LIST=" aten::add.out" \
126122 -DCMAKE_INSTALL_PREFIX=cmake-out \
123+ -DEXECUTORCH_OPTIMIZE_SIZE=ON \
127124 -DPYTHON_EXECUTABLE=" $PYTHON_EXECUTABLE " \
128125 -B${build_dir} \
129126 ${example_dir}
130127
131128 echo " Building ${example_dir} "
132129 cmake --build ${build_dir} -j9 --config Release
133130
134- echo ' Running selective build test'
135- ${build_dir} /selective_build_test --model_path=" ./mv2.pte"
131+ # echo 'Running selective build test'
132+ # ${build_dir}/selective_build_test --model_path="./mv2.pte"
136133
137- echo " Removing mv2.pte"
138- rm " ./mv2.pte"
134+ # echo "Removing mv2.pte"
135+ # rm "./mv2.pte"
139136}
140137
141138test_cmake_select_ops_in_yaml () {
168165
169166if [[ -z $PYTHON_EXECUTABLE ]];
170167then
171- PYTHON_EXECUTABLE=python3
168+ PYTHON_EXECUTABLE=python
172169fi
173170
174171if [[ $1 == " cmake" ]];
175172then
176173 cmake_install_executorch_lib
177- test_cmake_select_all_ops
174+ # test_cmake_select_all_ops
178175 test_cmake_select_ops_in_list
179- test_cmake_select_ops_in_yaml
176+ # test_cmake_select_ops_in_yaml
180177elif [[ $1 == " buck2" ]];
181178then
182179 test_buck2_select_all_ops
0 commit comments