Live data from Hacker News

Install GPU TensorFlow from Sources with Ubuntu 16.04 and Cuda 8.0 RC

alliseesolutions.wordpress.com

31–34 of 34 posts

Re: Install GPU TensorFlow from Sources with Ubuntu 16.04 and Cuda 8.0 RC

#31

Earlier quoted context omitted.

Ah, I see what I was missing before: there's a patch 1 of cuda 8.0, which adds gcc 5.4 support, and is installed in the cuda section using: sudo sh cuda_8.0.27.1_linux.run --silent --accept-eula

Still doesnt work for me though: even on a new box, I get: ubuntu@somewhere:~/tensorflow$ python3 -c 'import tensorflow' Traceback (most recent call last): File " ", line 1, in File "/home/ubuntu/tensorflow/tensorflow/__init__.py", line 23, in from tensorflow.python import * File "/home/ubuntu/tensorflow/tensorflow/python/__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow ImportError: cannot im…

Ok. Fixed this by two things:

- using branch r0.10, as suggested by https://news.ycombinator.com/item?id=12464835 - making sure to install the new r0.10 wheel, which has a different name than the r0 wheel built by master :-D

Re: Install GPU TensorFlow from Sources with Ubuntu 16.04 and Cuda 8.0 RC

#32

Earlier quoted context omitted.

Still doesnt work for me though: even on a new box, I get: ubuntu@somewhere:~/tensorflow$ python3 -c 'import tensorflow' Traceback (most recent call last): File " ", line 1, in File "/home/ubuntu/tensorflow/tensorflow/__init__.py", line 23, in from tensorflow.python import * File "/home/ubuntu/tensorflow/tensorflow/python/__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow ImportError: cannot im…

Ok. Fixed this by two things: - using branch r0.10, as suggested by https://news.ycombinator.com/item?id=12464835 - making sure to install the new r0.10 wheel, which has a different name than the r0 wheel built by master :-D

Thanks for sharing your solution!

Re: Install GPU TensorFlow from Sources with Ubuntu 16.04 and Cuda 8.0 RC

#33

Earlier quoted context omitted.

So strange I wonder why its working for me? Ubuntu 16.04.1? Fresh install? following exactly? Python 3?

Which branch are you building? For the first time I was able to complete a build last night, Ubuntu 16.04, CUDA 8.0 RC + compiler patch, cuDNN 5.1, nvidia-driver-370, python-2.7, and compute capability 6.1 (for Pascal GPU) - but only when I switched to the r0.10 branch. With r0.10 I see none of the multiple failure modes that I always see with master. It just went straight ahead and compiled the whole thing.

I used master but seems like r.0.10 seems to be solving the problem for most.

Re: Install GPU TensorFlow from Sources with Ubuntu 16.04 and Cuda 8.0 RC

#34
post #25

Earlier quoted context omitted.

The pip package doesn't build for me either. And I even reinstalled Ubuntu to get a fresh Python installation

So strange I wonder why its working for me? Ubuntu 16.04.1? Fresh install? following exactly? Python 3?

fwiw: twice now, I've successfully gotten a pip package linked with CUDA 8 & built Tensorflow from source — once for Python 2 and another for Python 3. Both on an Ubuntu 14.04 system
Post reply on HN