tensorflow-opencl
tensorflow-opencl copied to clipboard
Not Building
Hi,
I've tryed to build tensorflow from source because I need OpenCL support.
The environment was successfully setted as in the guide but the build did not end correctly.
I'm running Ubuntu 16.04, I've tryed to build both with GCC and Clang. The output provided here is with CLANG.
If you need addictional informations please ask, I really need TF to work on this computer.
Thank you
$ bazel version Build label: 0.4.3 Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Thu Dec 22 12:31:25 2016 (1482409885) Build timestamp: 1482409885 Build timestamp as int: 1482409885 Errors.txt
We are just trying to reproduce this at the moment.
@lorenzo93 Does it compile fine without --config=sycl
?
@lukeiwanski Without the parameter just build fine with GCC6 and G++6.
As you sad in the other issue I tryied also to downgrade GCC6 header to GCC5.
(Don't know if is correct but I just installed gcc-5 g++-5 and when ./configure
asked the compilers i gave it /usr/bin/gcc-5
and /usr/bin/g++-5
)
During this compilation the error was different, you can find the file in the attachments. Errors
Thank you very much for your help! :)
/usr/lib/gcc/x86_64-linux-gnu/6.2.0/../../../../include/c++/6.2.0/bits/stl_vector.h:914:7: note:
you are still using GCC6 headers
I'm sorry but I'm not so used to work with linux.
I've setted the default GCC and G++ link to gcc-5 and g++-5 and build it but is still using the 6th version. I've also tryed to unistall gcc6 but seems to be required by bazel. It seems that is bazel calling the wrong gcc bin, someone is telling to change the CROSSTOOL file changin manually the gcc path. I modified third_party/sycl/crosstool/CROSSTOOL.tpl file but the compiler is still using GCC6.
How can I switch correctly GCC version?
Did you re-configure project after modifying hird_party/sycl/crosstool/CROSSTOOL.tpl
?
Yes, but I checked and the modification is still there. The only change I made to that file was on line 45 making the path pointing directly to gcc5 include folder. CROSSTOOL