Skip to content

Instantly share code, notes, and snippets.

@shubhamagarwal92
Created March 7, 2019 15:55
Show Gist options
  • Save shubhamagarwal92/cda9223ad921bf7e0d806a94a4ef7173 to your computer and use it in GitHub Desktop.
Save shubhamagarwal92/cda9223ad921bf7e0d806a94a4ef7173 to your computer and use it in GitHub Desktop.
Installing torch7 on cuda 10 and ubuntu 18
# Installing torch 7 can be a nightmare on cuda 10. Luckily @nagadomi simplified it.
# https://github.com/nagadomi/waifu2x/issues/253#issuecomment-445448928
git clone https://github.com/nagadomi/distro.git ~/torch --recursive
cd ~/torch
./clean.sh
./update.sh
# Installing cudnn
git clone https://github.com/soumith/cudnn.torch.git -b R7
cd cudnn.torch
luarocks make cudnn-scm-1.rockspec
# If cutorch still doesn't load
# Dont do luarocks install cutorch
# https://github.com/torch/cutorch/issues/834#issuecomment-428767642
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment