Live data from Hacker News

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

alliseesolutions.wordpress.com

1–10 of 34 posts

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

#3

This seems to be a frankenstein of cuda 7.5 instructions and cuda 8.0. Similarly ubuntu 14.04 and 16.04. As far as i know, these instructions will fail from gcc 5.4 errors, amongst other issues.

Wont GCC fail, includes a patch for GCC, I tested on my system before posting. Running great!

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

#4

This seems to be a frankenstein of cuda 7.5 instructions and cuda 8.0. Similarly ubuntu 14.04 and 16.04. As far as i know, these instructions will fail from gcc 5.4 errors, amongst other issues.

Wont GCC fail, includes a patch for GCC, I tested on my system before posting. Running great!

One of your section is named "Install Nvidia Toolkit 7.5", this is probably what confused parent @hughperkins.

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

#5
post #4

Earlier quoted context omitted.

Wont GCC fail, includes a patch for GCC, I tested on my system before posting. Running great!

One of your section is named "Install Nvidia Toolkit 7.5", this is probably what confused parent @hughperkins.

Just found that one and fixed it, also someone confirmed working with a GTX 1080. I am so happy to finally ditch 14.04

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

#8
I'm not sure what Tensorflow source you're compiling, but I've been trying many times recently and it fails in many, many different ways. It's a neverending maze of fail, basically. I've never seen the end of it yet. It failed today, too, so the code base is not getting better.

I'm using Ubuntu 16.04, CUDA 8.0RC + the gcc patch, cuDNN 5.1, nvidia-driver-[367|370], tensorflow-master, python-2.7. My process is basically identical to yours.

A few issues are listed here:

https://github.com/tensorflow/tensorflow/issues/2559#issueco...

In some cases, Bazel seems to be the culprit. In other cases, it's Tensorflow itself. I've also seen a "gcc: internal compiler error" https://github.com/tensorflow/tensorflow/issues/4214

Some issues with your howto:

There's a chapter title "Install Nvidia Toolkit 7.5 & CudNN" but the instructions below use 8.0RC

```

Configure TensorFlow Installation

$ cd ~/tensorflow $ ./configure Use defaults by pressing enter for all except:

Please specify the location of python. [Default is /usr/bin/python]:

```

No. If you do that it won't compile with GPU support. You have to hit Enter on every question except these ones:

- Do you wish to build TensorFlow with GPU support? (answer: y)

- Please specify a list of comma-separated Cuda compute capabilities you want to build with. (answer: 6.1, or less for older GPUs)

- Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: (answer 8.0)

You don't have to specify the cuDNN version, apparently it can detect the version automatically. It's only the CUDA version detection that fails. https://github.com/tensorflow/tensorflow/issues/3985

"You must also have the 361.42 NVidia drivers installed"

No, that would not work with Pascal GPUs.

The only way I've seen it work is if you install CUDA 7.5 and cuDNN 4, and install Tensorflow from the binary package. But then you get weird errors if you run complex models on Pascal GPUs, because CUDA 7.5 doesn't work well with Pascal.

Seriously, if you made it work on Ubuntu 16.04 with CUDA 8 and it's GPU enabled, please upload the pip package somewhere. I'd love to give it a try.

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

#9

I'm not sure what Tensorflow source you're compiling, but I've been trying many times recently and it fails in many, many different ways. It's a neverending maze of fail, basically. I've never seen the end of it yet. It failed today, too, so the code base is not getting better. I'm using Ubuntu 16.04, CUDA 8.0RC + the gcc patch, cuDNN 5.1, nvidia-driver-[367|370], tensorflow-master, python-2.7. My process is basicall…

Just follow the instructions friend.

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

#10

I'm not sure what Tensorflow source you're compiling, but I've been trying many times recently and it fails in many, many different ways. It's a neverending maze of fail, basically. I've never seen the end of it yet. It failed today, too, so the code base is not getting better. I'm using Ubuntu 16.04, CUDA 8.0RC + the gcc patch, cuDNN 5.1, nvidia-driver-[367|370], tensorflow-master, python-2.7. My process is basicall…

Just follow the instructions friend.

Sorry missed that other 7.5 reference, replaced with 8. Sorry copy and pasted my 7.5 instructions as they were mainly the same.
Post reply on HN