mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 09:53:13 +08:00
Disable float16 packet casting if native AVX512 f16 is available.
This commit is contained in:
parent
5361dea833
commit
a24bf2e9a2
@ -37,10 +37,12 @@ struct type_casting_traits<double, int> : vectorized_type_casting_traits<double,
|
||||
template <>
|
||||
struct type_casting_traits<int, double> : vectorized_type_casting_traits<int, double> {};
|
||||
|
||||
#ifndef EIGEN_VECTORIZE_AVX512FP16
|
||||
template <>
|
||||
struct type_casting_traits<half, float> : vectorized_type_casting_traits<half, float> {};
|
||||
template <>
|
||||
struct type_casting_traits<float, half> : vectorized_type_casting_traits<float, half> {};
|
||||
#endif
|
||||
|
||||
template <>
|
||||
struct type_casting_traits<bfloat16, float> : vectorized_type_casting_traits<bfloat16, float> {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user