Skip to content

Commit e9f3fa7

Browse files
committed
Making changes to test_model.sh more incremental
1 parent 3b8003c commit e9f3fa7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.ci/scripts/test_model.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ build_cmake_executor_runner() {
5555
mkdir ${CMAKE_OUTPUT_DIR}
5656
if [[ "$backend_string_select" == "XNNPACK" ]]; then
5757
echo "Backend $backend_string_select selected"
58-
cmake -DCMAKE_BUILD_TYPE=Debug \
59-
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
58+
(cd ${CMAKE_OUTPUT_DIR} \
59+
&& cmake -DCMAKE_BUILD_TYPE=Release \
6060
-DEXECUTORCH_BUILD_XNNPACK=ON \
61-
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
62-
-B${CMAKE_OUTPUT_DIR} .
61+
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" ..)
62+
cmake --build ${CMAKE_OUTPUT_DIR} -j4
6363
else
6464
cmake -DCMAKE_BUILD_TYPE=Debug \
6565
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
6666
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
6767
-B${CMAKE_OUTPUT_DIR} .
68+
cmake --build ${CMAKE_OUTPUT_DIR} -j4 --config Debug
6869
fi
69-
cmake --build ${CMAKE_OUTPUT_DIR} -j4 --config Debug
7070
}
7171

7272
run_portable_executor_runner() {

0 commit comments

Comments
 (0)