benoitsteiner / tensorflow-opencl

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

build tensorflow with sycl #79

Open keyword1983 opened 6 years ago

keyword1983 commented 6 years ago

Hi
i try to build tensorflow with sycl but i get error below:

external/local_config_sycl/crosstool/../sycl/include/SYCL/multi_pointer.h:342:3: error: multiple overloads of 'global_ptr' instantiate to the same signature 'void (pointer_t)' (aka 'void (attribute((address_space(1))) float )') global_ptr(pointer_t ptr) : Base(ptr) {} ^ ... ^ tensorflow/core/kernels/adjust_contrast_op.cc:427:44: note: in instantiation of member function 'tensorflow::functor::AdjustContrastv2::operator()' requested here functor::AdjustContrastv2()( ^ external/local_config_sycl/crosstool/../sycl/include/SYCL/multi_pointer.h:334:3: note: previous declaration is here global_ptr(dataType ptr); ^ It seems re define global_ptr , how can i fix it??

my build command is: bazel build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" -c opt --config=sycl //tensorflow/tools/pip_package:build_pip_package

python 2.7/3.6 is the same error

gcc 4.85 / 5.x is the same error

thx a lot!!

mirh commented 6 years ago

Duplicate of #78 (but thanks for cutting noise in log)