Tested on AMI Glassmoon-depnet
- Get CuDNN v5.1 from /works/csisv15/plsang/cudnn/cudnn-7.5-linux-x64-v5.1.tgz
tar -xvf cudnn-7.5-linux-x64-v5.1.tgz
sudo cp cuda/include/* /usr/local/cuda/include/
sudo cp cuda/lib64/* /usr/local/cuda/lib64/
cd /usr/local/cuda/lib64/
sudo unlink libcudnn.so
sudo ln -s libcudnn.so.5 libcudnn.so
- Install torch from scratch (it would be better to remove old Torch environment first).
git clone https://github.com/plsang/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.bashrc
- Update Torch
cd ~/torch
./update.sh
./install.sh
This can be done using this script. Otherwise, you can manually install them as follows.
luarocks install nn
luarocks install nngraph
luarocks install image
luarocks install cutorch
luarocks install cunn
luarocks install loadcaffe
luarocks install lualogging
git clone https://github.com/deepmind/torch-hdf5
cd torch-hdf5; luarocks make hdf5-0-0.rockspec
wget http://www.kyne.com.au/~mark/software/download/lua-cjson-2.1.0.tar.gz
tar -xvf lua-cjson-2.1.0.tar.gz
cd lua-cjson-2.1.0; luarocks make
git clone https://github.com/slembcke/debugger.lua.git torch-debugger
cd torch-debugger; luarocks make
git clone https://github.com/plsang/nn.git torch-nn
cd torch-nn; luarocks make rocks/nn-scm-1.rockspec
git clone https://github.com/plsang/cunn.git torch-cunn
cd torch-cunn; luarocks make rocks/cunn-scm-1.rockspec
More on clcv branch