mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-01 16:24:28 +08:00
Add a default constructor for the "fake" __half class when not using the
__half class provided by CUDA.
This commit is contained in:
parent
3011dc94ef
commit
a0329f64fb
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user