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

Microsoft.ML.OnnxRuntime.Gpu 1.8.0: Failed to load library libonnxruntime_providers_shared.so #8052

Closed
asvyazin opened this issue Jun 15, 2021 · 4 comments
Assignees
Labels
build build issues; typically submitted using template

Comments

@asvyazin
Copy link

Hello, I'm using precompiled nuget package Microsoft.ML.OnnxRuntime.Gpu in .Net application on linux

Version 1.7.1 worked fine

Version 1.8.0 started throwing exception:

Microsoft.ML.OnnxRuntime.OnnxRuntimeException: [ErrorCode:Fail] OrtSessionOptionsAppendExecutionProvider_Cuda: Failed to load shared library
   at Microsoft.ML.OnnxRuntime.NativeApiStatus.VerifySuccess(IntPtr nativeStatus)
   at Microsoft.ML.OnnxRuntime.SessionOptions.AppendExecutionProvider_CUDA(Int32 deviceId)

It also logs this error before the exception:

2021-06-15 11:57:25.542258449 [E:onnxruntime:CSharpOnnxRuntime, provider_bridge_ort.cc:902 Ensure] Failed to load library libonnxruntime_providers_shared.so with error: libonnxruntime_providers_shared.so: cannot open shared object file: No such file or directory

I downloaded and unpacked nupkg file from nuget.org and it looks to me that libonnxruntime_providers_bridge.so is missing in linux-x64 folder:
Снимок экрана 2021-06-15 в 17 38 29

Probably I'm missing something, any ideas?

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Docker Container nvidia/cuda:11.0.3-cudnn8-runtime-ubuntu20.04
ONNX Runtime installed from (source or binary): binary
ONNX Runtime version: 1.8.0
Python version: N/A
Visual Studio version (if applicable): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: 11.0.3/8.x.x (not sure about exact cuDNN version)
GPU model and memory: nvidia A100 
@yuslepukhin yuslepukhin added the build build issues; typically submitted using template label Jun 15, 2021
@jywu-msft
Copy link
Member

looks like it is missing the required .so files under linux-x64/native

@hendrik-skubch
Copy link

I run into the same issue when using the C++ API and call Ort::SessionOptions::AppendExecutionProvider_CUDA on linux.

@snnn
Copy link
Member

snnn commented Jun 17, 2021

Thank you. We are solving it.

@hariharans29
Copy link
Member

Should be fixed by #8066

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

7 participants