diff options
author | Rasmus Larsen <rmlarsen@google.com> | 2019-10-22 22:18:38 +0000 |
---|---|---|
committer | Rasmus Larsen <rmlarsen@google.com> | 2019-10-22 22:18:38 +0000 |
commit | 8e4e29ae99414a60bc6b01780ca88ee85c83ba76 (patch) | |
tree | 4f8178e5ce381d2305c67ad03095b806a296cbbd /unsupported/Eigen/CXX11 | |
parent | 97c0c5d485ddec0369326825a41db48d8505cf4c (diff) | |
parent | 102cf2a72d79b18f9e321ce37a58fb833ec2e578 (diff) |
Merged in deven-amd/eigen-hip-fix-191018 (pull request PR-738)
Fix for the HIP build+test errors.
Diffstat (limited to 'unsupported/Eigen/CXX11')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h index e9086a7f1..221f8e843 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h @@ -78,7 +78,14 @@ class TensorBlockDescriptor { // evaluated expression scalar type. class DestinationBuffer { public: - enum DestinationBufferKind { + enum DestinationBufferKind : int { + // The above explicit specification of "int" as the enum basetype is needed + // to get around a HIPCC link error ("the field type is not amp-compatible") + // which is issued for class members with the enum type. + // TODO(rocm): + // remove the "int" basetype once HIPCC has been fixed to not error out + // in the above scenario. + // Destination buffer is not defined (`m_data` == nullptr). kEmpty, |