Skip to content

Commit 9ebdb41

Browse files
committed
fix: remove logging to std out during import
Related-To: NEO-18404 Signed-off-by: shubham kumar <shubham.kumar@intel.com>
1 parent 32168a0 commit 9ebdb41

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

bindings/sysman/python/source/pyzes.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ def _LoadZeLibrary():
6767
# load the library
6868
libName = "ze_loader"
6969
if sys.platform.startswith("linux"):
70-
print("Loading Linux library")
7170
libName = "/usr/lib/x86_64-linux-gnu/lib" + libName + ".so.1"
7271
else:
73-
print("Loading Windows library")
7472
# Try multiple common locations for Windows Intel GPU drivers
7573
import os
7674

@@ -94,29 +92,21 @@ def _LoadZeLibrary():
9492
matching_paths = glob.glob(path)
9593
for match_path in matching_paths:
9694
try:
97-
print(f"Trying: {match_path}")
9895
gpuLib = CDLL(match_path)
9996
library_loaded = True
100-
print(f"Successfully loaded: {match_path}")
10197
break
10298
except Exception as e:
103-
print(f"Failed to load {match_path}: {e}")
10499
continue
105100
else:
106101
if os.path.exists(path):
107-
print(f"Trying: {path}")
108102
gpuLib = CDLL(path)
109103
library_loaded = True
110-
print(f"Successfully loaded: {path}")
111104
break
112105
else:
113-
print(f"Trying: {path}")
114106
gpuLib = CDLL(path)
115107
library_loaded = True
116-
print(f"Successfully loaded: {path}")
117108
break
118109
except Exception as e:
119-
print(f"Failed to load {path}: {e}")
120110
continue
121111

122112
if library_loaded:

0 commit comments

Comments
 (0)