mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-22 04:27:36 +08:00
Don't refer to the half2 type unless it's been defined
This commit is contained in:
parent
0028049380
commit
a05607875a
@ -52,7 +52,7 @@ struct PacketType : internal::packet_traits<Scalar> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// For CUDA packet types when using a GpuDevice
|
// For CUDA packet types when using a GpuDevice
|
||||||
#if defined(EIGEN_USE_GPU) && defined(__CUDACC__)
|
#if defined(EIGEN_USE_GPU) && defined(__CUDACC__) && defined(EIGEN_HAS_CUDA_FP16)
|
||||||
template <>
|
template <>
|
||||||
struct PacketType<half, GpuDevice> {
|
struct PacketType<half, GpuDevice> {
|
||||||
typedef half2 type;
|
typedef half2 type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user