Add d/patches/0001-temporarily-disable-sse3-and-above.patch
Disable SSE3+ on amd64 (Closes: #894670). Signed-off-by: Shengjing Zhu <i@zhsj.me>master
parent
c7f00c1b31
commit
ee94ff8a74
|
@ -0,0 +1,61 @@
|
|||
From: Shengjing Zhu <i@zhsj.me>
|
||||
Date: Tue, 3 Apr 2018 20:48:41 +0800
|
||||
Subject: temporarily disable sse3 and above
|
||||
|
||||
SIMD support on i386 doesn't compile, see upstream bug#6.
|
||||
the way SIMD runtime detection can't guarantee gcc not to
|
||||
emit SIMD for generic functions, see upstream bug#16 and
|
||||
Debian bug#894670
|
||||
|
||||
So SIMD only will be used on amd64, and all amd64 has SSE2
|
||||
|
||||
Bug: http://lab.jerasure.org/jerasure/gf-complete/issues/6
|
||||
Bug: http://lab.jerasure.org/jerasure/gf-complete/issues/16
|
||||
Bug-Debian: https://bugs.debian.org/894670
|
||||
Signed-off-by: Shengjing Zhu <i@zhsj.me>
|
||||
---
|
||||
m4/ax_ext.m4 | 15 ++++++++++-----
|
||||
1 file changed, 10 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/m4/ax_ext.m4 b/m4/ax_ext.m4
|
||||
index 95c4dbe..19e5351 100644
|
||||
--- a/m4/ax_ext.m4
|
||||
+++ b/m4/ax_ext.m4
|
||||
@@ -46,27 +46,32 @@ AC_DEFUN([AX_EXT],
|
||||
|
||||
AC_CACHE_CHECK([whether sse3 is enabled], [ax_cv_have_sse3_ext], [ax_cv_have_sse3_ext=yes])
|
||||
if test "$ax_cv_have_sse3_ext" = yes; then
|
||||
- AX_CHECK_COMPILE_FLAG(-msse3, [SIMD_FLAGS="$SIMD_FLAGS -msse3 -DINTEL_SSE3"], [ax_cv_have_sse3_ext=no])
|
||||
+ # AX_CHECK_COMPILE_FLAG(-msse3, [SIMD_FLAGS="$SIMD_FLAGS -msse3 -DINTEL_SSE3"], [ax_cv_have_sse3_ext=no])
|
||||
+ :
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([whether ssse3 is enabled], [ax_cv_have_ssse3_ext], [ax_cv_have_ssse3_ext=yes])
|
||||
if test "$ax_cv_have_ssse3_ext" = yes; then
|
||||
- AX_CHECK_COMPILE_FLAG(-mssse3, [SIMD_FLAGS="$SIMD_FLAGS -mssse3 -DINTEL_SSSE3"], [ax_cv_have_ssse3_ext=no])
|
||||
+ # AX_CHECK_COMPILE_FLAG(-mssse3, [SIMD_FLAGS="$SIMD_FLAGS -mssse3 -DINTEL_SSSE3"], [ax_cv_have_ssse3_ext=no])
|
||||
+ :
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([whether pclmuldq is enabled], [ax_cv_have_pclmuldq_ext], [ax_cv_have_pclmuldq_ext=yes])
|
||||
if test "$ax_cv_have_pclmuldq_ext" = yes; then
|
||||
- AX_CHECK_COMPILE_FLAG(-mpclmul, [SIMD_FLAGS="$SIMD_FLAGS -mpclmul -DINTEL_SSE4_PCLMUL"], [ax_cv_have_pclmuldq_ext=no])
|
||||
+ # AX_CHECK_COMPILE_FLAG(-mpclmul, [SIMD_FLAGS="$SIMD_FLAGS -mpclmul -DINTEL_SSE4_PCLMUL"], [ax_cv_have_pclmuldq_ext=no])
|
||||
+ :
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([whether sse4.1 is enabled], [ax_cv_have_sse41_ext], [ax_cv_have_sse41_ext=yes])
|
||||
if test "$ax_cv_have_sse41_ext" = yes; then
|
||||
- AX_CHECK_COMPILE_FLAG(-msse4.1, [SIMD_FLAGS="$SIMD_FLAGS -msse4.1 -DINTEL_SSE4"], [ax_cv_have_sse41_ext=no])
|
||||
+ # AX_CHECK_COMPILE_FLAG(-msse4.1, [SIMD_FLAGS="$SIMD_FLAGS -msse4.1 -DINTEL_SSE4"], [ax_cv_have_sse41_ext=no])
|
||||
+ :
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([whether sse4.2 is enabled], [ax_cv_have_sse42_ext], [ax_cv_have_sse42_ext=yes])
|
||||
if test "$ax_cv_have_sse42_ext" = yes; then
|
||||
- AX_CHECK_COMPILE_FLAG(-msse4.2, [SIMD_FLAGS="$SIMD_FLAGS -msse4.2 -DINTEL_SSE4"], [ax_cv_have_sse42_ext=no])
|
||||
+ # AX_CHECK_COMPILE_FLAG(-msse4.2, [SIMD_FLAGS="$SIMD_FLAGS -msse4.2 -DINTEL_SSE4"], [ax_cv_have_sse42_ext=no])
|
||||
+ :
|
||||
fi
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1 @@
|
|||
0001-temporarily-disable-sse3-and-above.patch
|
Loading…
Reference in New Issue