配置torch、nccl环境遇到的问题

问题一描述

Tried loading libnccl.so.1 but got error /home/april/torch/install/share/lua/5.1/nccl/ffi.lua:192: libnccl.so.1: cannot open shared object file: No such file or directory
Tried loading libnccl.1.dylib but got error /home/april/torch/install/share/lua/5.1/nccl/ffi.lua:192: libnccl.1.dylib: cannot open shared object file: No such file or directory
| [en] Dictionary: 24738 types
| [de] Dictionary: 35474 types
Tried loading libnccl.so.1 but got error /home/april/torch/install/share/lua/5.1/nccl/ffi.lua:192: libnccl.so.1: cannot open shared object file: No such file or directory
Tried loading libnccl.1.dylib but got error /home/april/torch/install/share/lua/5.1/nccl/ffi.lua:192: libnccl.1.dylib: cannot open shared object file: No such file or directory
Tried loading libnccl.so.1 but got error /home/april/torch/install/share/lua/5.1/nccl/ffi.lua:192: libnccl.so.1: cannot open shared object file: No such file or directory

解决方案

分析问题:找不到libnccl的文件,所以要给系统指定路径
nccl源码下载后的路径为:/home/april/torch/nccl/nccl/
1.讲该路径添加到LD_LIBRARY_PATH中
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/april/torch/nccl/nccl/build/lib
2.更新torch的路径
source /home/april/torch/.bashrc

问题二描述

找不到epel-release-7-9.noarch.rpm的下载路径
方法:直接下载epel-release-7-9.noarch.rpm https://www.rpmfind.net/linux/rpm2html/search.php?query=epel-release
安装:rpm -ivh epel-release-6-8.noarch.rpm

问题三描述

配置nccl
git clone https://github.com/NVIDIA/nccl.git
cd nccl
export CUDA_HOME=/usr/local/cuda-8.0
make CUDA_HOME=${CUDA_HOME} test

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值