benoitsteiner / tensorflow-opencl

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

Status? #6

Closed TheOncomingStorm closed 7 years ago

TheOncomingStorm commented 7 years ago

What's the status of this? I'm building it from source(since I'm guessing that's the only option) but not sure if I'm doing it correctly. I know you have to add "config=cuda" if you're building for CUDA but not sure if there's a special config for OpenCL. Also, I'm planning on using this with my Intel gfx GPU, will that be supported if I use beignet?

benoitsteiner commented 7 years ago

First, you need to download and install the compiler available at https://www.codeplay.com/products/computesuite/computecpp.

Then you need to call ./configure and make sure you answer YES when prompted for OpenCL support.

Last but not least, you need to call bazel with --config=sycl to compile the OpenCL kernels.

I am using OpenCL on AMD GPU, so I have no experience with Intel hardware yet. In theory this should work but you never know until you try.