Merged in deven-amd/eigen-hip-fix-191018 (pull request PR-738) Fix for the HIP build+test errors.
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h index e9086a7..221f8e8 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBlockV2.h
@@ -78,7 +78,14 @@ // 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,