Skip to content

Commit 50e5ec0

Browse files
authored
fix: alert users that darwin is not supported (pytorch#15289)
### Summary Add a note for the users that try to follow the tutorials on Apple/Darwin systems
1 parent 02b535f commit 50e5ec0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

backends/qualcomm/scripts/build.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77
set -e
8-
set -o xtrace
8+
9+
# Check if running on macOS/Darwin
10+
if [[ "$(uname -s)" == "Darwin" ]]; then
11+
echo "Error: Qualcomm backend Python interface requires Linux operating system."
12+
echo "macOS/Darwin is not supported for building the Qualcomm backend."
13+
echo "Please use a x64 Linux system or x64 Linux container to build this backend."
14+
exit 1
15+
fi
916

1017
if [[ -z ${QNN_SDK_ROOT} ]]; then
1118
echo "Please export QNN_SDK_ROOT=/path/to/qnn_sdk"
1219
exit -1
1320
fi
1421

1522

23+
set -o xtrace
1624

1725
usage() {
1826
echo "Usage: Build the aarch64 version of executor runner or the python interface of Qnn Manager"

0 commit comments

Comments
 (0)