使用环境如下:CentOS 7,Anaconda,python=3.8
配置paddleASR(paddle语音识别)过程中报错:
-------------------------------------- C++ Traceback (most recent call last): -------------------------------------- 0 std::vector<std::unique_ptr<paddle::operators::FFTConfigCache, std::default_delete<paddle::operators::FFTConfigCache> >, std::allocator<std::unique_ptr<paddle::operators::FFTConfigCache, std::default_delete<paddle::operators::FFTConfigCache> > > >::~vector() 1 cufftDestroy ---------------------- Error Message Summary: ---------------------- FatalError: `Segmentation fault` is detected by the operating system. [TimeInfo: *** Aborted at 1665288937 (unix time) try "date -d @1665288937" if you are using GNU date ***] [SignalInfo: *** SIGSEGV (@0x18) received by PID 48912 (TID 0x7f1da57e3740) from PID 24 ***] 段错误(吐核)
造成原因:服务器用户使用conda安装cudatoolkit和cudnn后,需要在环境变量中配置cuda软链接。
解决方法:在.bashrc中添加以下命令:
export LD_LIBRARY_PATH="/home/用户名/anaconda3/envs/环境名/lib:$PATH"
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!