Closed ForceFaction closed 5 months ago
Have you tried LD_LIBRARY_PATH
That should work
LD_LIBRARY_PATH is not honored either. The reason seems simple to me: it isn't ld.so that's trying to lookup that shared object the level zero loader itself looks for it.
nevermind i'm just stupid.
This only applies to linux (since i only use linux).
I'm using a linux distro (Guix similar to Nix OS) which has non-standard paths for everything, which is why it releis on environment varibales to properly point programs to the correct files. Now after compiling level-zero and the compute-runtime strace shows the following:
So the loader only searches incorrect paths. Since
LIBRARY_PATH
is set such that it contains the searchedlibze_intel_gpu.so
it should be honored. I found in the code that there isZE_ENABLE_ALT_DRIVERS
which indeed could be used instead, but a comment in the code says it is only for debugging purposes, so i guess it might change or vanish without notice.