Skip to content

Commit b894063

Browse files
committed
Revert back to orig state on this
1 parent 5c429fc commit b894063

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

examples/selective_build/test_selective_build.sh

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
165141
test_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

188164
test_cmake_select_ops_in_model() {
@@ -230,10 +206,9 @@ fi
230206
if [[ $1 == "cmake" ]];
231207
then
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
238213
elif [[ $1 == "buck2" ]];
239214
then

0 commit comments

Comments
 (0)