diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-12-01 15:27:33 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-12-01 15:27:33 +0000 |
commit | 9f297d57aeb957c18b8d7161e72a0808866f69e1 (patch) | |
tree | feebc6aa6d3888900433630a8cb976314007f440 /Eigen/src/Core/arch/CUDA/Half.h | |
parent | f95e3b84a5d0cccada7abcb6a71a577dba4dd244 (diff) | |
parent | a0329f64fbd2d0cf09fea0d55a9a2538a87dad8a (diff) |
Merged in rmlarsen/eigen (pull request PR-256)
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/Half.h')
-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; }; |