[Build]
johnny857 opened this issue · comments
Describe the issue LoadLibrary failed with error 126
Urgency
No response
Target platform
Windows 10
Build script
if (useCuda) _inferenceSession = new InferenceSession(modelPath, SessionOptions.MakeSessionOptionWithCudaProvider()); else _inferenceSession = new InferenceSession(modelPath);
Error / output
Microsoft.ML.OnnxRuntime.OnnxRuntimeException:“[ErrorCode:RuntimeException] D:\a_work\1\s\onnxruntime\core\session\provider_bridge_ort.cc:1193 onnxruntime::ProviderLibrary::Get [ONNXRuntimeError] : 1 : FAIL : LoadLibrary failed with error 126 "" when trying to load "D:\Projects\Yolov8.Net\Yolo.Net.FromTest\bin\Debug\net6.0-windows\runtimes\win-x64\native\onnxruntime_providers_cuda.dll
Visual Studio Version
17.7
GCC / Compiler Version
No response
I am using the following content: Microsoft.ML.OnnxRuntime.GPU (nuget package VERSION 1.16.0)
NVIDIA CUDA Tool Kit (VERSION 11.3)
CUDNN (VERSION 8.2)