Closed wydxry closed 1 week ago
it works after change version 1.18.0 from 1.19.x, cause my cuDnn is 8.9.7.
it works after change version 1.18.0 from 1.19.x, cause my cuDnn is 8.9.7.
HJH Check Python Ver.3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] HJH Check CUDA Ver.12.1 HJH Check Torch Ver.2.3.1+cu121 HJH Check cuDNN Ver. 8907 HJH Check ONNXRuntime Ver. 1.19.2
2024-10-26 20:47:00.5657450 [E:onnxruntime:Default, provider_bridge_ort.cc:1992 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\session[provider_bridge_ort.cc:1637](http://provider_bridge_ort.cc:1637/) onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "C:\Work\SD-ComfyUI\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
I'm having the same problem.Have you solved it?
it works after change version 1.18.0 from 1.19.x, cause my cuDnn is 8.9.7.
HJH Check Python Ver.3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] HJH Check CUDA Ver.12.1 HJH Check Torch Ver.2.3.1+cu121 HJH Check cuDNN Ver. 8907 HJH Check ONNXRuntime Ver. 1.19.2
2024-10-26 20:47:00.5657450 [E:onnxruntime:Default, provider_bridge_ort.cc:1992 onnxruntime::TryGetProviderInfo_CUDA] D:\a_work\1\s\onnxruntime\core\sessionprovider_bridge_ort.cc:1637 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "C:\Work\SD-ComfyUI\python_embeded\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
I'm having the same problem.Have you solved it?
yes i solved it. You can check in some ways: 1.Are the related libraries compatible? 2.Have the environments of the related libraries been added to the system environment variables? 3.The lib and dll files of the related libraries (xxx.lib xxx.dll) can be copied to the CUDA directory.
This is my lib's version: Windows 11 GPU 4090 CUDA 12.6 cuDnn 8.9.7.29 TensorRT 10.5.0.18 PyTorch 2.4.1 Python 3.10 onnx 1.17.0 onnxruntime-gpu 1.19.2 (Python) onnxruntime-gpu 1.18.0 (C++)
Describe the issue
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:\WINDOWS\SYSTEM32\onnxruntime_providers_cuda.dll"
after copy xxx.dll to the path system32, it stil has this problem...
Urgency
No response
Target platform
Win11
Build script
Error / output
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:\WINDOWS\SYSTEM32\onnxruntime_providers_cuda.dll"
Visual Studio Version
2022
GCC / Compiler Version
onnxruntime-win-x64-gpu-1.19.2