Skip to content

Instantly share code, notes, and snippets.

@MrityunjaiKumar
Last active March 20, 2017 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrityunjaiKumar/210b330ee8430777ca7edf07347a5240 to your computer and use it in GitHub Desktop.
Save MrityunjaiKumar/210b330ee8430777ca7edf07347a5240 to your computer and use it in GitHub Desktop.
Installing cuda 8.0 toolkit error resolution, Kali
new version of gcc 6 and Cuda 8 are incompatibile
It fails when we are trying to do the #python setup.py build/install with the following error:
ERROR: No supported gcc/g++ host compiler found, but clang-3.8 is available.
Use ‘nvcc -ccbin clang-3.8’ to use that instead.
Traceback (most recent call last):
*************************************************
Example:-
https://packages.debian.org/jessie/gcc-4.9
https://packages.debian.org/jessie/g++-4.9
install these packages by ==> sudo dpkg -i gcc-4.9_4.9.2-10_amd64.deb
https://packages.debian.org/jessie/gcc-4.9-base
https://packages.debian.org/jessie/libstdc++-4.9-dev
in my case it redirect to amd64 ftp servers like this
https://packages.debian.org/jessie/amd64/libasan1/download
...etc, keep downloading and installing whatever dependencies it say is missing.
In the end, sudo apt-get install -f
########################################### test.py
import os
os.environ["THEANO_FLAGS"] = "mode=FAST_RUN,device=gpu,floatX=float32"
import theano
import keras
///////////////////////////////////////////////////////
cd /usr/bin/
sudo unlink gcc
sudo ln -s gcc4.8 gcc
sudo unlink g++
sudo ln -s g++-4.8 g++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment