-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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.18.0 not working with NVIDIA CUDA 11.6 #20916
Comments
I think this is just a DLL loading issue which is related to the dependencies of See https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order In general, the DLL above depends on CUDA libraries, and they need to be found either at the installation place (path) or in the process image folder. |
Thanks. I did some more investigations and it seems that dependencies have changed between Microsoft.ML.OnnxRuntime.Gpu 1.17.3 and 1.18.0. Dependencies of interest: 1.17.3: 1.18.0: E.g. cublasLt64_12.dll is not supplied by CUDA 11.6. CUDA 11.6 supplies cublasLt64_11.dll. |
ORT 1.18 GPU depends on CUDA 11.8. It should not be linked with cuda 12. @snnn , @pranavsharma. |
I checked the onnxruntime_providers_cuda.dll downloaded from our 1.18.0 release page from onnxruntime-win-x64-gpu-1.18.0.zip. The DLL depends on the following CUDA DLLs
I don't see 12 there. |
However, the package published to nuget.org is wrong. :-( |
Microsoft.ML.OnnxRuntime.Gpu 1.18.0 requires CUDA 11 and CUDA 12 to work properly. |
So what is the conclusion here? 😃 That Microsoft.ML.OnnxRuntime.Gpu 1.18.0 requires CUDA 12 which means the NuGet package is correct but the zip file is wrong or is it the other way round? |
I am sorry. The packages on nuget.org should use CUDA 11 instead. We uploaded CUDA 12 packages there by mistake. @jacobilsoe , which CUDA version do you need? |
OK, thanks for clarifying. I need CUDA 11 compatibility. I will just wait for 1.18.1 to be released then. That one will target CUDA 11, right? |
Yes |
I can confirm that this is now fixed in 1.18.1 |
Describe the issue
When using Microsoft.ML.OnnxRuntime.Gpu 1.18.0 with NVIDIA CUDA 11.6 on Windows I get an error. Microsoft.ML.OnnxRuntime.Gpu 1.17.3 and earlier versions work fine. According to https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html NVIDIA CUDA 11.6 should be compatible.
Error:
To reproduce
Run this line of C# code:
using var gpuSessionOptions = SessionOptions.MakeSessionOptionWithCudaProvider();
Urgency
No response
Platform
Windows
OS Version
Windows 11 Pro - 23H2
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.18.0
ONNX Runtime API
C#
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
CUDA 11.6
The text was updated successfully, but these errors were encountered: