diff options
author | Deven Desai <deven.desai.amd@gmail.com> | 2019-07-02 20:02:46 +0000 |
---|---|---|
committer | Deven Desai <deven.desai.amd@gmail.com> | 2019-07-02 20:02:46 +0000 |
commit | 7eb2e0a95b1b2385b075b43209ad573fd1172865 (patch) | |
tree | 3b671d4d47024ff38a15294fdb9cf6d3da90268f /unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h | |
parent | ef8aca6a89d8476a0411bd061666a4095946d4a4 (diff) |
adding the EIGEN_DEVICE_FUNC attribute to the constCast routine.
Not having this attribute results in the following failures in the `--config=rocm` TF build.
```
In file included from tensorflow/core/kernels/cross_op_gpu.cu.cc:20:
In file included from ./tensorflow/core/framework/register_types.h:20:
In file included from ./tensorflow/core/framework/numeric_types.h:20:
In file included from ./third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1:
In file included from external/eigen_archive/unsupported/Eigen/CXX11/Tensor:140:
external/eigen_archive/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h:356:37: error: 'Eigen::constCast': no overloaded function has restriction specifiers that are compatible with the ambient context 'data'
typename Storage::Type result = constCast(m_impl.data());
^
external/eigen_archive/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h:356:37: error: 'Eigen::constCast': no overloaded function has restriction specifiers that are compatible with the ambient context 'data'
external/eigen_archive/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h:148:56: note: in instantiation of member function 'Eigen::TensorEvaluator<const Eigen::TensorChippingOp<1, Eigen::TensorMap<Eigen::Tensor<int, 2, 1, long>, 16, MakePointer> >, Eigen::Gpu\
Device>::data' requested here
return m_rightImpl.evalSubExprsIfNeeded(m_leftImpl.data());
```
Adding the EIGEN_DEVICE_FUNC attribute resolves those errors
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h')
0 files changed, 0 insertions, 0 deletions