You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating recognizer ... terminate called after throwing an instance of 'Ort::Exception'
what(): /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1209 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
使用 GPU 运行模型,执行命令如下
报错如下:
Creating recognizer ...
terminate called after throwing an instance of 'Ort::Exception'
what(): /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1209 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
cuda 和 cudnn 安装方式参考文档是: https://k2-fsa.github.io/k2/installation/cuda-cudnn.html#cuda-12-4 。
which nvcc
/home/voice11/repositories/cuda_env/cuda-12.4.0/bin/nvcc
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Feb_27_16:19:38_PST_2024
Cuda compilation tools, release 12.4, V12.4.99
Build cuda_12.4.r12.4/compiler.33961263_0
因为报错的代码来自 onnxruntime_src, 我先去 onnxruntime github 中查找了相关问题:
看描述,cuda12.x 中的库文件是 libcublasLt.so.12 , 但是 libonnxruntime_providers_cuda.so 要找的是 libcublasLt.so.11
查看 ldd /home/voice11/repositories/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime_providers_cuda.so ,的确有不少库文件丢失
再查看 /home/voice11/repositories/sherpa-onnx/build/_deps/onnxruntime-src/lib/libonnxruntime.so
并没有使用 libonnxruntime_providers_cuda.so,所以并不清楚 libonnxruntime_providers_cuda.so 是怎么跑出来的,有一个相关代码改动是: #1210 。
至此,排查就不知道如何进行下去了。
The text was updated successfully, but these errors were encountered: