Description: ComputeCpp-needs-some-help-to-get-the-right-toolchain
 When trying to build OpenCL support, compute++ doesn't choose the right
 GCC toolchain.
 .
 python-tensorflow-cuda8 (1.2.1-1) unstable; urgency=medium
 .
   * Initial release.
Author: Adam Cecile <acecile@le-vert.net>

---
Origin: other
Forwarded: no
Last-Update: 2017-08-19

--- tensorflow-1.2.1.orig/third_party/sycl/crosstool/computecpp.tpl
+++ tensorflow-1.2.1/third_party/sycl/crosstool/computecpp.tpl
@@ -66,6 +66,7 @@ def main():
       computecpp_device_compiler_flags = ['-sycl-compress-name', '-DTENSORFLOW_USE_SYCL', '-Wno-unused-variable', '-I', COMPUTECPP_INCLUDE, '-isystem',
           COMPUTECPP_INCLUDE, '-std=c++11', '-sycl', '-emit-llvm', '-no-serial-memop', '-Xclang', '-cl-denorms-are-zero', '-Xclang', '-cl-fp32-correctly-rounded-divide-sqrt']
       computecpp_device_compiler_flags += [flag for flag in compiler_flags if not flag.startswith(('-fsanitize', '-march=native', '-mavx'))]
+      computecpp_device_compiler_flags += [ '--gcc-toolchain=/usr/lib/gcc/x86_64-linux-gnu/4.9' ]
 
       x = subprocess.call([COMPUTECPP_DRIVER] + computecpp_device_compiler_flags )
       if(x == 0):
