mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-02 00:34:14 +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.
|
// Make our own __half definition that is similar to CUDA's.
|
||||||
struct __half {
|
struct __half {
|
||||||
EIGEN_DEVICE_FUNC __half() {}
|
EIGEN_DEVICE_FUNC __half() : x(0) {}
|
||||||
explicit EIGEN_DEVICE_FUNC __half(unsigned short raw) : x(raw) {}
|
explicit EIGEN_DEVICE_FUNC __half(unsigned short raw) : x(raw) {}
|
||||||
unsigned short x;
|
unsigned short x;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user