oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
211 stars 90 forks source link

Error when loading level_zero lib for `zesInit()` on windows client #137

Open sgwhat opened 5 months ago

sgwhat commented 5 months ago

Hi all,

I am trying to loading "ze_intel_gpu64.dll" on my windows client, but it doesn't work.

I tried to loaded libze_intel_gpu.so on ubuntu before, and it works well.

Could you please give me some advice to debug?

Thanks!

This is my error log:

image

sgwhat commented 5 months ago

Here is my implementation, error happens when executed ret = (*resp->oh.zesInit)(0); and ze_intel_gpu64.dll could be loaded.

https://github.com/felipeagc/ollama/blob/main/gpu/gpu_info_oneapi.c https://github.com/felipeagc/ollama/blob/main/gpu/gpu_info_oneapi.h

sgwhat commented 5 months ago

I also tried "C:\Windows\System32\ze_loader.dll", but still got error, this also related to ret = (*resp->oh.zesInit)(0); :

image