Skip to content

Commit be807ad

Browse files
committed
add logging
1 parent 2415c60 commit be807ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

backends/qualcomm/scripts/download_qnn_sdk.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,34 @@ def check_glibc_exist_and_validate() -> bool:
5353
"""
5454
Check if users have glibc installed.
5555
"""
56-
logging.debug("[QNN] Checking glibc exist running on Linux x86")
56+
print("[QNN] Checking glibc exist running on Linux x86")
5757
exists = False
5858
for path in REQUIRED_LIBC_LIBS:
5959
try:
6060
output = subprocess.check_output(
6161
[path, "--version"], stderr=subprocess.STDOUT
6262
)
6363
output = output.decode().split("\n")[0]
64-
logging.debug(f"[QNN] glibc version for path {path} is: {output}")
64+
print(f"[QNN] glibc version for path {path} is: {output}")
6565
match = re.search(r"version (\d+\.\d+)", output)
6666
if match:
6767
version = match.group(1)
6868
if float(version) >= MINIMUM_LIBC_VERSION:
69-
logging.debug(f"[QNN] glibc version is {version}.")
69+
print(f"[QNN] glibc version is {version}.")
7070
exists = True
7171
return True
7272
else:
73-
logger.error(
73+
print(
7474
f"[QNN] glibc version is too low. The minimum libc version is {MINIMUM_LIBC_VERSION} Please install glibc following the commands below."
7575
)
7676
else:
77-
logger.error("[QNN] glibc version not found.")
77+
print("[QNN] glibc version not found.")
7878

7979
except Exception:
8080
continue
8181

8282
if not exists:
83-
logger.error(
83+
print(
8484
r""""
8585
[QNN] glibc not found or the version is too low. Please install glibc following the commands below.
8686
Ubuntu/Debian:

0 commit comments

Comments
 (0)