Enabling CUDA execution provider #83
-
Hi, thanks for such a nice crate for the onnxruntime! I'm trying to do inference with it and struggling with enabling CUDA execution provider. Here is how I set it up in the When I run the project by PowerShell
My questions is, how can I use the Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hmm, it's hard to tell the exact error here. Do you also have cuDNN installed and added |
Beta Was this translation helpful? Give feedback.
Hmm, I've also seen this happen with a missing
zlibwapi.dll
(at least for CUDA 11). It seems NVIDIA removed the download from their docs so I don't know if CUDA 12 depends on it anymore, but you could try extractingdll_x64/zlibwapi.dll
from http://www.winimage.com/zLibDll/zlib123dllx64.zip to the CUDA bin dir.Additionally, ONNX Runtime 1.15.1 doesn't necessarily support CUDA 12 which could be causing this error, though some report it working, so I'm not sure. If nothing else works it might not hurt to uninstall CUDA 12 and try CUDA 11.8 (though note you'll also need to re-download cuDNN as there are separate versions for CUDA 11.x and 12.x)