benoitsteiner / tensorflow-opencl

OpenCL support for TensorFlow
Apache License 2.0
472 stars 86 forks source link

No open-cl documentation #28

Open Whytehorse opened 7 years ago

Whytehorse commented 7 years ago

Very confused. How does one install and test this? It's basically just a big old directory with lots of files and the readme is just a copy of the tensorflow install which tell you how to install tensorflow, not tensorflow-opencl.

benoitsteiner commented 7 years ago

Thanks for you interest. Please take a look at the OpenCL specific section of the overall documentation. This will be published on the tensorflow.org site soon.

atlury commented 7 years ago

Hello, Thanks. Will wait for you guys to official open it up on tensorflow.org site. I hope intel gpus are supported as the documentation under the opencl specific section only talks about AMD

Whytehorse commented 7 years ago

I looked there. I get a bunch of errors when running configure for tensorflow, like this: ERROR: /home/ben/tensorflow-opencl-master/tensorflow/workspace.bzl:17:3: //external:eigen_archive: no such attribute 'urls' in 'new_http_archive' rule. Ok, I resolved this. It's a known bug in bazel https://github.com/tensorflow/tensorflow/issues/6436

Whytehorse commented 7 years ago

atlury, any gpu which has drivers that support OpenCL 1.2 will work with this tensorflow-opencl. I'm currently testing it on AMD APU called Kaveri A10-7850K, aka STEAMROLLER!!!!!!!

Whytehorse commented 7 years ago

anyway, I got it to compile and install via pip3. Thank you for all of this. One more thing I think needs to be clarified is --copt=-march=native. This is supposed to optimize tensorflow to take advantage of my CPU features. But I can't find a list of those optimizations. Is there a file which lists all of these? Found a list of gcc options here: https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html On a AMD A10-7850k the one that worked and compiled was bdver3

outlace commented 7 years ago

Is this going to be merged with the main tensorflow project at some point?

Mandrewoid commented 6 years ago

@benoitsteiner Your link https://github.com/benoitsteiner/tensorflow-opencl/blob/master/tensorflow/g3doc/get_started/os_setup.md#optional-install-opencl-experimental-linux-only
is 404