summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-06-12 07:30:23 +0000
committernia <nia@pkgsrc.org>2021-06-12 07:30:23 +0000
commit068bec46bf5cfa6ce9e9613de3343f6078fba235 (patch)
tree22176298c02e24cfb9014251224c227f5e4aa33c
parent116c5337bfbd2347eddc8872a0032e6f7ac570a1 (diff)
downloadpkgsrc-068bec46bf5cfa6ce9e9613de3343f6078fba235.tar.gz
fftw: Disable "generic" GCC simd intrinsics
These produce poor code and it's always better to use the CPU-specific intrinsics instead, which we already do on platforms where the test suite doesn't fail.
-rw-r--r--math/fftw/options.mk8
1 files changed, 2 insertions, 6 deletions
diff --git a/math/fftw/options.mk b/math/fftw/options.mk
index 0d62b50c577..dfbe3e4302b 100644
--- a/math/fftw/options.mk
+++ b/math/fftw/options.mk
@@ -1,12 +1,11 @@
-# $NetBSD: options.mk,v 1.11 2021/05/16 10:16:26 nia Exp $
+# $NetBSD: options.mk,v 1.12 2021/06/12 07:30:23 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.fftw
-PKG_SUPPORTED_OPTIONS= fftw-fortran openmp mpi
+PKG_SUPPORTED_OPTIONS= fftw-fortran openmp mpi simd
.include "../../mk/bsd.prefs.mk"
.if !empty(PKGSRC_COMPILER:M*gcc*) || !empty(PKGSRC_COMPILER:M*clang*)
-PKG_SUPPORTED_OPTIONS+= simd
. if ${MACHINE_ARCH} == "x86_64"
PKG_SUPPORTED_OPTIONS+= avx
. endif
@@ -24,9 +23,6 @@ FFTW_DOUBLE_OPTS+= --enable-${opt}
.endif
.if !empty(PKG_OPTIONS:Msimd)
-# Generic compiler vector abstractions (GCC extension).
-FFTW_FLOAT_OPTS+= --enable-generic-simd128 --enable-generic-simd256
-FFTW_DOUBLE_OPTS+= --enable-generic-simd128 --enable-generic-simd256
. if !empty(MACHINE_ARCH:Mpowerpc*)
FFTW_FLOAT_OPTS+= --enable-altivec
. endif