File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
examples/apple/mps/scripts Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 "
5050CMAKE_PREFIX_PATH=" ${PWD} /cmake-out/lib/cmake/ExecuTorch;${PWD} /cmake-out/third-party/gflags"
5151# build mps_executor_runner
5252rm -rf cmake-out/examples/apple/mps
5353cmake \
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
6261echo " Build succeeded!"
You can’t perform that action at this time.
0 commit comments