mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Added missing EIGEN_DEVICE_FUNC qualifier
This commit is contained in:
parent
3d0741f027
commit
3dfc391a61
@ -97,7 +97,7 @@ struct type_casting_traits<float, half> {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
template<> EIGEN_STRONG_INLINE half2 pcast<float4, half2>(const float4& a) {
|
template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE half2 pcast<float4, half2>(const float4& a) {
|
||||||
// Simply discard the second half of the input
|
// Simply discard the second half of the input
|
||||||
return __float22half2_rn(make_float2(a.x, a.y));
|
return __float22half2_rn(make_float2(a.x, a.y));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user