上一篇 pip install onnxruntime-gpu 安装 onnxruntime-gpu 成功后,使用 onnxruntime-gpu 推理时报错,报错信息如下:
[E:onnxruntime:Default, provider_bridge_ort.cc:1480 TryGetProviderInfo_CUDA] /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1193 onnxruntime::Provider& onnxruntime::ProviderLibrary::Get() [ONNXRuntimeError] : 1 : FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcublasLt.so.11: cannot open shared object file: No such file or directory
解决方案:
使用如下命令,安装 cudatoolkit
conda install cudatoolkit
参考链接:
https://blog.csdn.net/jinxianwei1999/article/details/134705262