Skip to content

Commit 78ba45a

Browse files
committed
EIGEN UPDATE: Stricter version numbers for included intrinsics
1 parent 0f48a94 commit 78ba45a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/eigen_5.0.1/Eigen/src/Core/arch/AVX/TypeCasting.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct type_casting_traits<int64_t, double> : vectorized_type_casting_traits<int
5757
#endif
5858

5959
EIGEN_STRONG_INLINE __m256 eigen_mm256_set_m128(__m128 hi, __m128 lo) {
60-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
60+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 810
6161
__m256 result = _mm256_castps128_ps256(lo);
6262
return _mm256_insertf128_ps(result, hi, 1);
6363
#else
@@ -66,7 +66,7 @@ EIGEN_STRONG_INLINE __m256 eigen_mm256_set_m128(__m128 hi, __m128 lo) {
6666
}
6767

6868
EIGEN_STRONG_INLINE __m256d eigen_mm256_set_m128d(__m128d hi, __m128d lo) {
69-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
69+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 810
7070
__m256d result = _mm256_castpd128_pd256(lo);
7171
return _mm256_insertf128_pd(result, hi, 1);
7272
#else
@@ -75,7 +75,7 @@ EIGEN_STRONG_INLINE __m256d eigen_mm256_set_m128d(__m128d hi, __m128d lo) {
7575
}
7676

7777
EIGEN_STRONG_INLINE __m256i eigen_mm256_set_m128i(__m128i hi, __m128i lo) {
78-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
78+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 810
7979
#if defined(EIGEN_VECTORIZE_AVX2)
8080
__m256i result = _mm256_castsi128_si256(lo);
8181
return _mm256_inserti128_si256(result, hi, 1);

lib/eigen_5.0.1/Eigen/src/Core/arch/AVX512/PacketMath.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,47 +45,47 @@ typedef eigen_packet_wrapper<__m256i, 6> Packet16s;
4545
typedef eigen_packet_wrapper<__m128i, 6> Packet8s;
4646

4747
EIGEN_STRONG_INLINE __m512i eigen_mm512_loadu_epi32(const int* from) {
48-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
48+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 1010
4949
return _mm512_loadu_si512(reinterpret_cast<const void*>(from));
5050
#else
5151
return _mm512_loadu_epi32(from);
5252
#endif
5353
}
5454

5555
EIGEN_STRONG_INLINE __m512i eigen_mm512_loadu_epi64(const int64_t* from) {
56-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
56+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 1010
5757
return _mm512_loadu_si512(reinterpret_cast<const void*>(from));
5858
#else
5959
return _mm512_loadu_epi64(from);
6060
#endif
6161
}
6262

6363
EIGEN_STRONG_INLINE void eigen_mm512_storeu_epi32(void* to, const __m512i& from) {
64-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
64+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 1010
6565
_mm512_storeu_si512(to, from);
6666
#else
6767
_mm512_storeu_epi32(to, from);
6868
#endif
6969
}
7070

7171
EIGEN_STRONG_INLINE void eigen_mm512_storeu_epi64(void* to, const __m512i& from) {
72-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
72+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 1010
7373
_mm512_storeu_si512(to, from);
7474
#else
7575
_mm512_storeu_epi64(to, from);
7676
#endif
7777
}
7878

7979
EIGEN_STRONG_INLINE void eigen_mm256_storeu_epi32(void* to, const __m256i& from) {
80-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
80+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 1010
8181
_mm256_storeu_si256(reinterpret_cast<__m256i*>(to), from);
8282
#else
8383
_mm256_storeu_epi32(to, from);
8484
#endif
8585
}
8686

8787
EIGEN_STRONG_INLINE void eigen_mm_storeu_epi32(void* to, const __m128i& from) {
88-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
88+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 1010
8989
_mm_storeu_si128(reinterpret_cast<__m128i*>(to), from);
9090
#else
9191
_mm_storeu_epi32(to, from);

lib/eigen_5.0.1/Eigen/src/Core/arch/AVX512/TypeCasting.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ template <>
5353
struct type_casting_traits<float, bfloat16> : vectorized_type_casting_traits<float, bfloat16> {};
5454

5555
EIGEN_STRONG_INLINE __mmask16 eigen_mm512_cmpneq_ps_mask(__m512 a, __m512 b) {
56-
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 800
56+
#if EIGEN_COMP_GNUC && !EIGEN_COMP_CLANG && EIGEN_COMP_GNUC < 810
5757
return _mm512_cmp_ps_mask(a, b, _CMP_NEQ_UQ);
5858
#else
5959
return _mm512_cmpneq_ps_mask(a, b);

0 commit comments

Comments
 (0)