mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
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.
This commit is contained in:
commit
9f297d57ae
@ -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