Skip to content

Commit 81e4b06

Browse files
committed
feature: Add more APIs to L0 Sysman python binding
Related-To: NEO-18602 Added following APIs to python binding: 1. zesDevicePciGetProperties 2. zesDevicePciGetStats 3. zesDeviceEccAvailable 4. zesDeviceEccConfigurable 5. zesDeviceGetEccState 6. zesDeviceSetEccState 7. zesPowerGetLimitsExt 8. zesPowerSetLimitsExt 9. zesFrequencyGetAvailableClocks 10. zesFrequencyGetRange 11. zesFrequencySetRange 12. zesFrequencyGetThrottleTime 13. zesDevicePciGetState 14. zesPowerGetProperties 15. zesFrequencyGetProperties Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
1 parent 27b4eb4 commit 81e4b06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bindings/sysman/python/source/pyzes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import sys
1313
import threading
14+
from ctypes.util import find_library
1415
from ctypes import *
1516
from typing import Any, Dict
1617

@@ -67,7 +68,7 @@ def _LoadZeLibrary():
6768
# load the library
6869
libName = "ze_loader"
6970
if sys.platform.startswith("linux"):
70-
libName = "/usr/lib/x86_64-linux-gnu/lib" + libName + ".so"
71+
libName = find_library(libName) or "libze_loader.so.1"
7172
else:
7273
# Try multiple common locations for Windows Intel GPU drivers
7374
possible_paths = [

0 commit comments

Comments
 (0)