[eigen-commits] commit/eigen: deven-amd: adding the EIGEN_DEVICE_FUNC attribute to the constCast routine. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen-commits Archives
]
- To: eigen-commits@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen-commits] commit/eigen: deven-amd: adding the EIGEN_DEVICE_FUNC attribute to the constCast routine.
- From: Bitbucket <commits-noreply@xxxxxxxxxxxxx>
- Date: Tue, 02 Jul 2019 21:11:01 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bitbucket.org; h=mime-version:content-type:content-transfer-encoding:subject:from:to; s=s1; bh=8yQJHLyFy8n7lN5BoWBTnRTEu8s=; b=Zg/hX/WBiKt8rcTcjV8t1Cu OzQxwXI7FJB05ZzYus43IaTANFU8wqrj6g3kRKdm9BlD0NmFAkio0lyYiu29LbU0 DJvQm9t7JrdBsRz8cFuk040oRjiksU2bIHqQU8s0T7tOevLXi+mk9RMGp4k4AGf5 YHkHkEohUP7s41YtKxAU=
1 new commit in eigen:
https://bitbucket.org/eigen/eigen/commits/362e736a6e78/
Changeset: 362e736a6e78
User: deven-amd
Date: 2019-07-02 20:02:46+00:00
Summary: 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
Affected #: 1 file
Repository URL: https://bitbucket.org/eigen/eigen/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.