lukeiwanski / tensorflow

OpenCL support for TensorFlow via SYCL
Apache License 2.0
65 stars 14 forks source link

Enable cross-compilation of SYCL TensorFlow #214

Closed DuncanMcBain closed 6 years ago

DuncanMcBain commented 6 years ago

These patches add support for crosscompiling TensorFlow with SYCL enabled. It replaces the cross-compile gcc and g++ with compute++ in sycl-driver mode, which means that the computecpp.tpl script is no longer needed. Full instructions on how to use this will be released soon.

jwlawson commented 6 years ago

Trying this out without wanting to crosscompile I get the following: ERROR: no such package '@local_config_sycl//crosstool': key "BITCODE_TARGET" not found in dictionary Can you set a default value? This needs to be super easy to use (or at least not harder than the current build commands).

jwlawson commented 6 years ago

Also seeing

ERROR: /tmp/bazel/external/com_google_absl/absl/base/BUILD.bazel:129:1: C++ compilation of rule '@com_google_absl//absl/base:base' failed (Exit 1)
src/main/tools/process-wrapper-legacy.cc:58: "execvp(/usr/local/computecpp/bin/compute, ...)": No such file or directory
DuncanMcBain commented 6 years ago

Instructions have not yet been published, I will get that done so folks can try it out (unfortunately it's not quite so easy as no-configure-go, yet).