Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libze_intel_gpu.so didn't load when executing sycl-ls #806

Open
wdkwyf opened this issue Feb 7, 2025 · 1 comment
Open

libze_intel_gpu.so didn't load when executing sycl-ls #806

wdkwyf opened this issue Feb 7, 2025 · 1 comment

Comments

@wdkwyf
Copy link

wdkwyf commented Feb 7, 2025

Hi, I'm using LNL and want to use level-zero iGPU. However, when I install NEO, only opencl environment is good.

KMD:
ubuntu 24.10

uname -r
6.11.0-1006-intel
UMD:
25.04 release
lsgpu
card1 Intel Lunarlake (Gen20) drm:/dev/dri/card1
└─renderD128 drm:/dev/dri/renderD128

ZE_ENABLE_LOADER_DEBUG_TRACE=1 sycl-ls
ZE_LOADER_DEBUG_TRACE:Using Loader Library Path:
ZE_LOADER_DEBUG_TRACE:Load Library of libze_intel_vpu.so failed with libze_intel_vpu.so: cannot open shared object file: No such file or directory
ZE_LOADER_DEBUG_TRACE:0 Drivers Discovered
ZE_LOADER_DEBUG_TRACE:Using Loader Library Path:
ZE_LOADER_DEBUG_TRACE:Load Library of libze_intel_vpu.so failed with libze_intel_vpu.so: cannot open shared object file: No such file or directory
ZE_LOADER_DEBUG_TRACE:0 Drivers Discovered
[opencl:cpu][opencl:0] Intel(R) OpenCL, Intel(R) Core(TM) Ultra 7 268V OpenCL 3.0 (Build 0) [2025.19.1.0.22_160000]
[opencl:gpu][opencl:1] Intel(R) OpenCL Graphics, Intel(R) Arc(TM) Graphics OpenCL 3.0 NEO  [25.04.32460]

sudo dpkg -l|grep libze
ii libze-intel-gpu-dev 25.04.32460-0 amd64 Intel(R) Graphics Compute Runtime for oneAPI Level Zero - development headers
ii libze-intel-gpu1 25.04.32460-0 amd64 Intel(R) Graphics Compute Runtime for oneAPI Level Zero.
sudo dpkg -l|grep libze
ii libze-intel-gpu-dev 25.04.32460-0 amd64 Intel(R) Graphics Compute Runtime
for oneAPI Level Zero - development headers
ii libze-intel-gpu1 25.04.32460-0 amd64 Intel(R) Graphics Compute Runtime for > oneAPI Level Zero.

sudo dpkg -l|grep level-zero
ii intel-level-zero-gpu-raytracing 1.0.0-80~u24.04 amd64 oneAPI Level Zero Ray Tracing Support
rc intel-level-zero-npu 1.13.0.20250131-13074932693 amd64 Intel(R) Level Zero Driver for NPU hardware
ii level-zero 1.20.2 amd64 oneAPI Level Zero
ii level-zero-devel 1.20.2 amd64 oneAPI Level Zero

libze_intel_gpu.so exist in /lib/x86_64-linux-gnu/, but the level zero only find vpu and didn't load any gpu so file.
If any suggestion, would be appreciate!

@nrspruit
Copy link
Contributor

nrspruit commented Feb 7, 2025

Hello @wdkwyf

So, please check your LD_LIBRARY_PATH, if the loader is only showing the libze_intel_vpu.so, then the libze_intel_gpu.so is missing from the path.

If the gpu driver library was in the path you would have seen:
ZE_LOADER_DEBUG_TRACE:Using Loader Library Path:
ZE_LOADER_DEBUG_TRACE:Load Library of libze_intel_gpu.so

In fact it should always print that unless the loader you are using is missing the lines:
static const char *knownDriverNames[] = {
MAKE_LIBRARY_NAME("ze_intel_gpu", "1"),
..

In the linux driver discovery.

Can you provide the logs from:

strace sycl-ls

and

SYCL_UR_TRACE=-1 sycl-ls

Thank you for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants