[SCM] libm4ri: library of Method of the Four Russians Inversion branch, master, updated. fcd65d29a6b4b95c829eee9967a452f3ffe6828e

Cédric Boutillier boutil at debian.org
Thu Mar 28 21:42:19 UTC 2013


The following commit has been merged in the master branch:
commit f8e02146978dcfa566c0e7536b4b0d199e28d1d5
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu Mar 28 08:00:03 2013 +0100

    add patches to enable sse2 for non Intel cpu and disable sse3

diff --git a/debian/patches/disable_sse3.patch b/debian/patches/disable_sse3.patch
new file mode 100644
index 0000000..8b6739d
--- /dev/null
+++ b/debian/patches/disable_sse3.patch
@@ -0,0 +1,25 @@
+Description: unconditionnally disable SSE3 instructions
+ Those instructions are not implemented on all processors.
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2013-03-28
+
+--- a/m4/ax_ext.m4
++++ b/m4/ax_ext.m4
+@@ -68,17 +68,11 @@
+  AC_CACHE_CHECK([whether sse3 is supported], [ax_cv_have_sse3_ext],
+   [
+     ax_cv_have_sse3_ext=no
+-    if test "$((0x$ecx&0x01))" = 1; then
+-      ax_cv_have_sse3_ext=yes
+-    fi
+   ])
+ 
+  AC_CACHE_CHECK([whether ssse3 is supported], [ax_cv_have_ssse3_ext],
+   [
+     ax_cv_have_ssse3_ext=no
+-    if test "$((0x$ecx>>9&0x01))" = 1; then
+-      ax_cv_have_ssse3_ext=yes
+-    fi
+   ])
+ 
+   if test "$ax_cv_have_mmx_ext" = yes; then
diff --git a/debian/patches/dont_disable_sse2_for_opteron.patch b/debian/patches/dont_disable_sse2_for_opteron.patch
new file mode 100644
index 0000000..fcff11e
--- /dev/null
+++ b/debian/patches/dont_disable_sse2_for_opteron.patch
@@ -0,0 +1,22 @@
+Description: stop discriminating non Intel CPUs
+ remove condition on CPU vendor to determine wether SSE2 instructions
+ should be enabled.
+Author: Cédric Boutillier <boutil at debian.org>
+Bug: https://bitbucket.org/malb/m4ri/issue/52/do-not-forbid-sse2-enabling-for-non-intel
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702287
+Last-Update: 2013-03-28
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -49,10 +49,7 @@
+       AC_MSG_ERROR([SSE2 cannot be supported when wrapping word in a C++ class.])
+    fi
+    case $host_cpu in i[[3456]]86*|x86_64*)
+-          AX_CPU_VENDOR()
+-          if test "x$ax_cv_cpu_vendor" = "xIntel"; then
+-             AX_EXT() # SSE2 is slower on the Opteron
+-          fi
++      AX_EXT() 
+    esac
+ ])
+ if test x"$ax_cv_have_sse2_ext" = x"yes"; then
diff --git a/debian/patches/series b/debian/patches/series
index 5ad7588..4f8a5bd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
 # necessary for 20120415
 #upstream-versioning-change
+dont_disable_sse2_for_opteron.patch
+disable_sse3.patch

-- 
libm4ri: library of Method of the Four Russians Inversion



More information about the debian-science-commits mailing list