锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 开源技术 / kaldi开发技术服务 / 不能打开libcuda.so、找不到libcuda.so、不能创建cuda上下文

服务方向

人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发

联系方式

固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

不能打开libcuda.so、找不到libcuda.so、不能创建cuda上下文

 

最近训练语音识别模型,对dnn进行训练,中间遇到“不能打开libcuda.so问题”、“找不到libcuda.so问题”和“不能创建cuda上下文问题”,安装和显卡推荐的驱动,安装和驱动匹配的cuda,export LD_LIBRARY_PATH,包含libcuda.so的路径,问题得到解决。下面是一些相关问题的翻译,供大家参考,如果细节上不会找我QQ396806883.

 

I build Kaldi in GPU machine, and when running below 我在GPU机器中以及在下面运行时构建Kaldi

src/nnet2bin/nnet-am-init

I got below error 我遇到错误

src/nnet2bin/nnet-am-init: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory

and I try this 我尝试这个

ldd src/nnet2bin/nnet-am-init | grep cu
     libcublas.so.5.0 => /usr/local/cuda/lib64/libcublas.so.5.0 (0x00007f98d679f000)
     libcudart.so.5.0 => /usr/local/cuda/lib64/libcudart.so.5.0 (0x00007f98d6545000)
     libcuda.so.1 => not found  

I exactly follow the documents to build the tool, any idea what goes wrong? 我完全按照文档来构建工具,知道发生了什么问题吗?

 

 

 

You didn't write what kind of linux you have. Are you using redhat? I suggest looking around and figuring where the libcuda.so.1 (or maybe
libcuda.so* ) is. The linker saw the library, but during the runtime the library is not visible to the loader. There were similar problems reported from atlas users on RedHat (IIRC), so you might want to search the forums if there would be a solution. 您没有编写具有哪种Linux。您在使用redhat吗?我建议环顾四周,弄清楚libcuda.so.1所在路径,链接器能看到库,但是运行时库对加载者不可见。RedHat用户上报过类似错误,你可以搜索下论坛。

 

 

I am using CentOS. I am trying to search around so far have not found libcudo.so.1 yet. thanks. 我正在使用CentOS。我正在尝试搜索,到目前为止尚未找到libcudo.so.1。谢谢。

 

 

AFAIK CentOS is Redhat with stripped stars :) You should look for libcuda.so* -- kaldi make script doesn't link against a specific version of the library. AFAIK CentOS是Redhat,带有剥离的星星:)

 

 

Yan, which version of the CUDA SDK you have? It seems that for CUDA 5.5, there is no such libray as libcuda.so... 恩,您拥有哪个版本的CUDA SDK?看来对于CUDA 5.5,

 

 

 

If you use a recent version of Kaldi and ran "configure" recently, it should not be trying to link with libcuda.so. Instead it should try
to load it only while running, if needed. Karel made this change in January 2013, see below. So all I can assume is that you are over 2 years out of date. 如果您使用的是Kaldi的最新版本并最近运行了“配置”,它将不应尝试与libcuda.so链接。相反,它应该尝试在运行时加载。已经打过补丁了,所以确定你2年没有更新了。

 

 


友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内