Bug#1054906: fftw3: Please enable avx2

Klaus Kudielka klaus.kudielka at gmail.com
Sat Oct 28 14:27:13 BST 2023


Source: fftw3
Severity: wishlist
Tags: patch
X-Debbugs-Cc: klaus.kudielka at gmail.com

Dear Maintainer,

please enable avx2 on Intel architectures, as it is probably available on most
Intel CPUs in the field today.

In my use cases (2D single-precision image transforms) this saves 20% execution
time on an i5-4570.

It should be as simple as:

diff --git a/debian/rules b/debian/rules
index 2467ec70..10c7ef9f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,8 +37,8 @@ endif

 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 ifneq (,$(filter $(DEB_HOST_ARCH), i386 amd64 x32))
-       archconfflags_single := --enable-sse --enable-avx
-       archconfflags_double := --enable-sse2 --enable-avx
+       archconfflags_single := --enable-sse --enable-avx --enable-avx2
+       archconfflags_double := --enable-sse2 --enable-avx --enable-avx2
 endif
 # no avx support in debian yet see #674760
 ifneq (,$(filter $(DEB_HOST_ARCH), kfreebsd-i386 kfreebsd-amd64))


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the debian-science-maintainers mailing list