Skip to content

Instantly share code, notes, and snippets.

@rdoume
Created January 21, 2020 17:21
Show Gist options
  • Save rdoume/b433ca08f494e1546d736df0cd4b9ec9 to your computer and use it in GitHub Desktop.
Save rdoume/b433ca08f494e1546d736df0cd4b9ec9 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Ubuntu28.04
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment