We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d769c commit a651c65Copy full SHA for a651c65
backends/qualcomm/__init__.py
@@ -2,15 +2,9 @@
2
3
from .scripts.download_qnn_sdk import install_qnn_sdk
4
5
-print("Running executorch/backends/qualcomm/__init__.py")
6
-
7
env_flag = os.getenv("EXECUTORCH_BUILDING_WHEEL", "0").lower()
8
-print(f"[QCOM init] EXECUTORCH_BUILDING_WHEEL = {env_flag!r}")
+# If users have preinstalled QNN_SDK_ROOT, we will use it.
+qnn_sdk_root_flag = os.getenv("QNN_SDK_ROOT", None)
9
10
-if env_flag in ("1", "true", "yes"):
11
- print(
12
- "[QCOM init] EXECUTORCH_BUILDING_WHEEL is set -> skipping Qualcomm SDK install."
13
- )
14
-else:
15
- print("[QCOM init] SDK install flag not set -> installing Qualcomm SDK...")
+if not env_flag in ("1", "true", "yes") and not qnn_sdk_root_flag:
16
install_qnn_sdk()
0 commit comments