Skip to content

Instantly share code, notes, and snippets.

@ksopyla
Created September 6, 2016 14:27
Show Gist options
  • Save ksopyla/aeb7a47e5c8397c33f4cfac1933b7a12 to your computer and use it in GitHub Desktop.
Save ksopyla/aeb7a47e5c8397c33f4cfac1933b7a12 to your computer and use it in GitHub Desktop.
Update gcc and g++ for cuda toolkit 8.0 RC installation
sudo apt-get install gcc-4.9
sudo apt-get install g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 40 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --config gcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment