Pulled latest updates from trunk

This commit is contained in:
Benoit Steiner 2016-02-21 20:24:59 +00:00
commit e644f60907
2 changed files with 6 additions and 1 deletions

View File

@ -195,8 +195,11 @@ struct TensorEvaluator<const TensorConversionOp<TargetType, ArgType>, Device>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_impl.dimensions(); }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(Scalar* /*data*/)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(Scalar* data)
{
if (internal::is_same<TargetType, SrcType>::value) {
return m_impl.evalSubExprsIfNeeded((SrcType*)data);
}
m_impl.evalSubExprsIfNeeded(NULL);
return true;
}

View File

@ -239,6 +239,8 @@ void test_cxx11_tensor_of_float16_cuda()
Eigen::GpuDevice device(&stream);
if (device.majorDeviceVersion() > 5 ||
(device.majorDeviceVersion() == 5 && device.minorDeviceVersion() >= 3)) {
std::cout << "Running test on device with capability " << device.majorDeviceVersion() << "." << device.minorDeviceVersion() << std::endl;
CALL_SUBTEST_1(test_cuda_conversion());
CALL_SUBTEST_1(test_cuda_unary());
CALL_SUBTEST_1(test_cuda_elementwise());