SHARE
TWEET

CUDA on Ubuntu

TringaliLuca Apr 23rd, 2019 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "Checking for CUDA and installing."
  3. # Check for CUDA and try to install.
  4. if ! dpkg-query -W cuda; then
  5.   # The 16.04 installer works with 16.10.
  6.   curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
  7.   dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
  8.   apt-get update
  9.   apt-get install cuda -y
  10. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top