diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2016-11-29 13:18:09 -0800 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2016-11-29 13:18:09 -0800 |
commit | a0329f64fbd2d0cf09fea0d55a9a2538a87dad8a (patch) | |
tree | 3036e97ce8660621eb8dcc1222844988aba063a8 /Eigen/src/Core/arch/CUDA | |
parent | 3011dc94efcabf609ce4bd766fa0461c4f17b5e3 (diff) |
Add a default constructor for the "fake" __half class when not using the
__half class provided by CUDA.
Diffstat (limited to 'Eigen/src/Core/arch/CUDA')
-rw-r--r-- | Eigen/src/Core/arch/CUDA/Half.h | 2 |
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 63371bdf4..5a400307b 100644 --- a/Eigen/src/Core/arch/CUDA/Half.h +++ b/Eigen/src/Core/arch/CUDA/Half.h @@ -53,7 +53,7 @@ namespace half_impl { // Make our own __half definition that is similar to CUDA's. struct __half { - EIGEN_DEVICE_FUNC __half() {} + EIGEN_DEVICE_FUNC __half() : x(0) {} explicit EIGEN_DEVICE_FUNC __half(unsigned short raw) : x(raw) {} unsigned short x; }; |