-
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
E:onnxruntime:Default, provider_bridge_ort.cc:1992 onnxruntime::TryGetProviderInfo_CUDA #22019
Comments
First of all, you shall uninstall onnxruntime package since that is cpu only. The following are recommended: CUDA 12.x
Installation is like:
You will need set PATH to points to cuda and cudnn bin directory like For trouble shooting, you can follow this. I guess the root cause might be PATH is not set correctly. CUDA 11.8Based on the matrix, we can see that torch 2.3 use cudnn 8, but torch 2.4 uses cudnn 9:
For onnxruntime-gpu 1.19.0 or 1.19.2, cuda 12 version uses cudnn 9, but cuda 11.8 version uses cudnn 8. Note that the major version of both cuda and cudnn shall be matched between PyTorch and OnnxRuntime. The following are recommended for cuda 11.8:
Installation is like:
|
@tianleiwu thank you for reply what fixed for me is put cudnn 9.4 dlls into the capi folder and add that capi folder to user path it is really bothersome :/ but working at least |
What is capi folder? I am facing the same issue when I try to install tensor rt and onnx runtime on docker. Can you please rephrase clearly what you meant by putting cudnn 9.4 dlls into the capi folder? Thanks! |
The capi means the same directory onnxruntime dll, which is located in directory like |
I try every combination but i can't fix this error
I have tried torch 2.4.0 cu118 with below link
I have tried torch 2.4.0 cu124 with below link
pip install onnxruntime-gpu==1.19.0
Both is giving below error how can I fix?
I need onnxruntime-gpu==1.19.0 minimum 1.18 not working
2024-09-07 00:48:13.5944632 [E:onnxruntime:Default, provider_bridge_ort.cc:1992 onnxruntime::TryGetProviderInfo_CUDA] D:\a\_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1637 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "R:\face_fusion_Next_v2\facefusion\venv\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
Urgency
I need very urgently
Target platform
Windows
Visual Studio Version
Visual Studio Build Tools 2022 LTSC 17.8
Pip Freeze
The text was updated successfully, but these errors were encountered: