Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bindings/sysman/python/source/pyzes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ def _LoadZeLibrary():
# load the library
libName = "ze_loader"
if sys.platform.startswith("linux"):
libName = "/usr/lib/x86_64-linux-gnu/lib" + libName + ".so.1"
# Load by SONAME so the dynamic linker resolves the loader
# through the standard search path (LD_LIBRARY_PATH, the
# ld.so cache, default directories). Hardcoding one distro
# location can pin an older loader than the one the Level
# Zero runtime itself uses when several loaders coexist,
# and a zesInit through the mismatched copy can break
# device enumeration for the whole process.
libName = "lib" + libName + ".so.1"
else:
libName = libName + ".dll"

Expand Down