Skip to content

Commit bd68a93

Browse files
committed
debug runner
1 parent 3248c72 commit bd68a93

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.ci/scripts/test_model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ test_model_with_mps() {
247247
"${PYTHON_EXECUTABLE}" -m examples.apple.mps.scripts.mps_example --model_name="${MODEL_NAME}" --use_fp16
248248
EXPORTED_MODEL=$(find "." -type f -name "${MODEL_NAME}*.pte" -print -quit)
249249

250-
if [ -z "$EXPORTED_MODEL" ]; then
250+
if [ -z "${EXPORTED_MODEL}" ]; then
251251
echo "[error] failed to export model: no .pte file found"
252252
exit 1
253253
fi

examples/apple/mps/scripts/build_mps_executor_runner.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,18 @@ cmake -DBUCK2="$BUCK" \
4444
-DEXECUTORCH_BUILD_DEVTOOLS=ON \
4545
-DEXECUTORCH_ENABLE_EVENT_TRACER=ON \
4646
-DEXECUTORCH_BUILD_MPS=ON \
47-
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
47+
-DEXECUTORCH_ENABLE_LOGGING=ON \
4848
-Bcmake-out .
49-
cmake --build cmake-out -j9 --target install --config "$MODE"
49+
cmake --build cmake-out -j$(sysctl -n hw.ncpu) --target install --config "$MODE"
5050
CMAKE_PREFIX_PATH="${PWD}/cmake-out/lib/cmake/ExecuTorch;${PWD}/cmake-out/third-party/gflags"
5151
# build mps_executor_runner
5252
rm -rf cmake-out/examples/apple/mps
5353
cmake \
5454
-DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH" \
5555
-DCMAKE_BUILD_TYPE="$MODE" \
56-
-DPYTHON_EXECUTABLE="$PYTHON_EXECUTABLE" \
5756
-Bcmake-out/examples/apple/mps \
5857
examples/apple/mps
5958

60-
cmake --build cmake-out/examples/apple/mps -j9 --config "$MODE"
59+
cmake --build cmake-out/examples/apple/mps -j$(sysctl -n hw.ncpu) --config "$MODE"
6160

6261
echo "Build succeeded!"

0 commit comments

Comments
 (0)