aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/CUDA
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-08-04 18:32:26 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-08-04 18:32:26 -0700
commitfe778427f2aab125a1d1906192bb4d8a73a57a12 (patch)
treeed52cc3ced2bf5897c39dac3338dafbe66fcfd02 /Eigen/src/Core/arch/CUDA
parent5eea1c7f977253bfc1d1540e1db0fb616e41b61c (diff)
Fixed the constructors of the new half_base class.
Diffstat (limited to 'Eigen/src/Core/arch/CUDA')
-rw-r--r--Eigen/src/Core/arch/CUDA/Half.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/CUDA/Half.h b/Eigen/src/Core/arch/CUDA/Half.h
index 99846cb0b..c2ff207ba 100644
--- a/Eigen/src/Core/arch/CUDA/Half.h
+++ b/Eigen/src/Core/arch/CUDA/Half.h
@@ -65,8 +65,8 @@ EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC __half float_to_half_rtne(float ff);
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC float half_to_float(__half h);
struct half_base : public __half {
- explicit EIGEN_DEVICE_FUNC half_base(unsigned short raw) : __half(raw) {}
EIGEN_DEVICE_FUNC half_base() {}
+ EIGEN_DEVICE_FUNC half_base(const half_base& h) : __half(h) {}
EIGEN_DEVICE_FUNC half_base(const __half& h) : __half(h) {}
};