-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Build] Java API with oneDNN error: LoadLibrary failed with error 126 #18292
Comments
It extracted the dll from the jar, but couldn't find the dependent libraries. I'm not sure what those are for DNNL on Windows. |
It seems that the |
The library is registered with a delete on exit hook. On Windows that doesn't usually fire due to the JVM shutdown code inside Windows only unloading the library after the hook has been called, but if library loading failed then it may well delete that library as it won't have been loaded. So try loading a model using the DNNL provider in something like |
Well, I found |
It's failing because the library loading path doesn't include something that DNNL requires. I don't know what that is, and on Windows it's a bit of a pain to find out because tools like |
This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. If further support is needed, please provide an update and/or more details. |
Describe the issue
Hi,
I built ort Java jar with oneDNN EP and met error when executing my code. Error message shows that the
onnxruntime_providers_dnnl.dll
load failed with error code 126.Error happens in this line:
options.addDnnl(true);
It seems that the
onnxruntime_providers_dnnl.dll
exists in the jar, but the program can't find it correctly. I'm not sure which step did I make a mistake when building.Urgency
No response
Target platform
windows x64
Build script
.\build.bat --config Release --build_java --parallel --compile_no_warning_as_error --skip_submodule_sync --use_dnnl
Error / output
I got a ort jar with
onnxruntime_providers_dnnl.dll
, but error happens whenoptions.addDnnl(true)
is executed. The error message is as follows:Visual Studio Version
2022 community
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: