RuntimeError: cuDNN version incompatibility: PyTorch was compiled against (8, 5, 0) but found runti

在配置memsum环境时遇到RuntimeError,提示cuDNN版本与PyTorch编译版本不匹配。问题根源是LD_LIBRARY_PATH中包含了不匹配版本的cuDNN。解决方案是删除LD_LIBRARY_PATH中的冲突版本或者安装与PyTorch匹配的cuDNN(8.5.0)。简单地unsetLD_LIBRARY_PATH可以解决此问题。
摘要由CSDN通过智能技术生成

问题

RuntimeError: cuDNN version incompatibility: PyTorch was compiled against (8, 5, 0) but found runtime version (8, 4, 1). PyTorch already comes bundled with cuDNN. One option to resolving this error is to ensure PyTorch can find the bundled cuDNN.Looks like your LD_LIBRARY_PATH contains incompatible version of cudnnPlease either remove it from the path or install cudnn (8, 5, 0)

在复现memsum,构建环境的时候,出现了这个问题,逛了一圈,问题出在pytorch和cudnn版本不对,可以从LD_LIBRARY_PATH解决问题

方法

unset LD_LIBRARY_PATH解决了我的问题

  • 23
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 9
    评论
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值