Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build tensorflow with sycl #79

Open
keyword1983 opened this issue Nov 6, 2017 · 1 comment
Open

build tensorflow with sycl #79

keyword1983 opened this issue Nov 6, 2017 · 1 comment

Comments

@keyword1983
Copy link

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::AdjustContrastv2Eigen::SyclDevice::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
Copy link

mirh commented Dec 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants