File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
backends/qualcomm/scripts Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ def is_linux_x86() -> bool:
4040
4141REQUIRED_QNN_LIBS = ["libc.so.6" ]
4242
43+ import subprocess
44+
4345
4446def 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
You can’t perform that action at this time.
0 commit comments