Skip to content

Commit a651c65

Browse files
committed
clean up logs in init
1 parent 00d769c commit a651c65

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

backends/qualcomm/__init__.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22

33
from .scripts.download_qnn_sdk import install_qnn_sdk
44

5-
print("Running executorch/backends/qualcomm/__init__.py")
6-
75
env_flag = os.getenv("EXECUTORCH_BUILDING_WHEEL", "0").lower()
8-
print(f"[QCOM init] EXECUTORCH_BUILDING_WHEEL = {env_flag!r}")
6+
# If users have preinstalled QNN_SDK_ROOT, we will use it.
7+
qnn_sdk_root_flag = os.getenv("QNN_SDK_ROOT", None)
98

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...")
9+
if not env_flag in ("1", "true", "yes") and not qnn_sdk_root_flag:
1610
install_qnn_sdk()

0 commit comments

Comments
 (0)