Skip to content

Commit 5785f37

Browse files
committed
add more logs
1 parent 12c6929 commit 5785f37

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

backends/qualcomm/scripts/download_qnn_sdk.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def is_linux_x86() -> bool:
4040

4141
REQUIRED_QNN_LIBS = ["libc.so.6"]
4242

43+
import subprocess
44+
4345

4446
def check_glibc_exist() -> bool:
4547
"""
@@ -48,6 +50,15 @@ def check_glibc_exist() -> bool:
4850
print("[QNN] Checking glibc exist running on Linux x86")
4951
paths = ["/lib/x86_64-linux-gnu/libc.so.6", "/lib64/libc.so.6", "/lib/libc.so.6"]
5052

53+
for path in paths:
54+
try:
55+
output = subprocess.check_output(
56+
[path, "--version"], stderr=subprocess.STDOUT
57+
)
58+
print("[QNN] glibc version for path is: ", path)
59+
print(output.decode().split("\n")[0])
60+
except Exception:
61+
continue
5162
exists = any(os.path.isfile(p) for p in paths)
5263
if not exists:
5364
logger.error(
@@ -65,6 +76,8 @@ def check_glibc_exist() -> bool:
6576
"""
6677
)
6778
print("[QNN] glibc exists: ", exists)
79+
print(get_glibc_version())
80+
6881
return exists
6982

7083

0 commit comments

Comments
 (0)