Torch - Ubuntu安装torch-hdf5,loadcaffe,matio和nccl

torch-hdf5

sudo apt-get install libhdf5-serial-dev hdf5-tools 
git clone https://github.com/deepmind/torch-hdf5 
cd torch-hdf5 
sudo luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR=”/usr/lib/x86_64-Linux-gnu/

loadcaffe

git clone https://github.com/szagoruyko/loadcaffe.git 
cd loadcaffe 
sudo apt-get install libprotobuf-dev protobuf-compiler 
luarocks install loadcaffe

matio

luarocks install matio

matio 出现的详细错误解决

错误

/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/trepl/init.lua:389: /root/torch/install/share/lua/5.1/trepl/init.lua:389: /root/torch/install/share/lua/5.1/trepl/init.lua:389: /root/torch/install/share/lua/5.1/matio/ffi.lua:24: Could not find libmatio. Please make sure that you installd MatIO and you have the shared libraries (libmatio.so or libmatio.dylib) in your library path

解决方案:

sudo apt-get install libmatio2
luarocks install matio

nccl

采用 multi-GPUs 训练时速度更高:

git clone https://github.com/NVIDIA/nccl.git
cd nccl
make 
make install
luarocks install nccl

如果出现 libnccl.so not found,在 ~/.bashrc 中设置 LD_LIBRARY_PATH.

相关文章

1.安装过程出现0x00000000指令引用的0x00000000内存该内存不能为written 如果你安装的是inux系统 需要在...
写在全面:如果根据以下教程涉及到只读文件需要更改文件权限才能需修改文件内容,参考我的另一篇博客:...
写在前面:以下步骤中需要在终端输入命令,电脑端查看博客的朋友可以直接复制粘贴到终端,手机端查看的...
ubuntu16.04和18.04更换国内源 写在前面:安装好ubuntu双系统后,默认的软件更新源是国外的,在国内使用...
ubuntu双系统启动时卡死解决办法(在ubuntu16.04和18.04测试无误) 问题描述: 在安装完ubuntu双系统后...
又来造轮子了。。。。。。。。。。。。。。。。 今天使用w3af向文件中写入的时候,发现没有write权限,...