mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-19 08:07:36 +08:00
Pulled latest updates from trunk
This commit is contained in:
commit
e644f60907
@ -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 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);
|
m_impl.evalSubExprsIfNeeded(NULL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -239,6 +239,8 @@ void test_cxx11_tensor_of_float16_cuda()
|
|||||||
Eigen::GpuDevice device(&stream);
|
Eigen::GpuDevice device(&stream);
|
||||||
if (device.majorDeviceVersion() > 5 ||
|
if (device.majorDeviceVersion() > 5 ||
|
||||||
(device.majorDeviceVersion() == 5 && device.minorDeviceVersion() >= 3)) {
|
(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_conversion());
|
||||||
CALL_SUBTEST_1(test_cuda_unary());
|
CALL_SUBTEST_1(test_cuda_unary());
|
||||||
CALL_SUBTEST_1(test_cuda_elementwise());
|
CALL_SUBTEST_1(test_cuda_elementwise());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user