Describe the issue
I used onnxruntime-gpu==1.18.1 before, it can load onnx and work in CUDA(11.7).
Today, after upgrading to onnxruntime-gpu==1.19.0, it prompts that CUDA does not work
2024-08-16 15:41:33.7983729 [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 "C:\Users\sunny\anaconda3\envs\pytorch\lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
2024-08-16 15:41:33.8037106 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:965 onnxruntime::python::CreateExecutionProviderInstance] Failed to create CUDAExecutionProvider. Require cuDNN 9.* and CUDA 12.*, and the latest MSVC runtime. Please install all dependencies as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.
Use the following code to check, it is available.
providers = onnxruntime.get_available_providers()
print(providers)
# ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']
To reproduce
(1) Upgrade to pip install onnxruntime-gpu==1.19.0
(2) Use providers = ["'CUDAExecutionProvider"]
Load any onnx model.
(3) You can see the red error in the report.
LoadLibrary failed with xxxxxxx capi\onnxruntime_providers_cuda.dll"
Urgency
Hopefully, it will be compatible with CUDA 11.7 / 11.8 like 1.18.1, as the user base is large. Forcing an upgrade to cuDNN 9.* and CUDA 12.* is obviously not a good idea.
I don't know why cuDNN 9.* and CUDA 12.* are required, are there any new features?
Platform
Windows
OS Version
11
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.19.0
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
CUDA 11.7 / 11.8
Describe the issue
I used onnxruntime-gpu==1.18.1 before, it can load onnx and work in CUDA(11.7).
Today, after upgrading to onnxruntime-gpu==1.19.0, it prompts that CUDA does not work
Use the following code to check, it is available.
To reproduce
(1) Upgrade to pip install onnxruntime-gpu==1.19.0
(2) Use providers = ["'CUDAExecutionProvider"]
Load any onnx model.
(3) You can see the red error in the report.
LoadLibrary failed with xxxxxxx capi\onnxruntime_providers_cuda.dll"
Urgency
Hopefully, it will be compatible with CUDA 11.7 / 11.8 like 1.18.1, as the user base is large. Forcing an upgrade to cuDNN 9.* and CUDA 12.* is obviously not a good idea.
I don't know why cuDNN 9.* and CUDA 12.* are required, are there any new features?
Platform
Windows
OS Version
11
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.19.0
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
CUDA 11.7 / 11.8