summaryrefslogtreecommitdiff
path: root/math/fftw3
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2019-11-03 13:11:01 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2019-11-03 13:11:01 +0000
commit0f4d7e486b4dc7a4e26f2d75dc6b05e033796510 (patch)
tree88b4082ae0dd6c266891245905716e74c700ee84 /math/fftw3
parentUpdate to 2.3.3 (diff)
Add arm64 performance counter and enable NEON support.
* Enable cycle counter via the PMCCNTR_EL0 register on arm64 for all variants * Enable NEON instructions for -float flavor * Runtime tested with bench utility in tests directory (./work/fftw-3.3.8/tests/bench if compiling ports) on Orange Pi PC running 13.0-CURRENT r347967 PR: 239511 Submitted by: daniel.engberg.lists@pyret.net Reviewed by: mikael.urankar@gmail.com Approved by: jhale (maintainer timeout, 3 months)
Notes
Notes: svn path=/head/; revision=516418
Diffstat (limited to 'math/fftw3')
-rw-r--r--math/fftw3/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/math/fftw3/Makefile b/math/fftw3/Makefile
index 5b11b984c8c4..7492d50d8166 100644
--- a/math/fftw3/Makefile
+++ b/math/fftw3/Makefile
@@ -3,7 +3,7 @@
PORTNAME= fftw3
DISTVERSION= 3.3.8
-PORTREVISION?= 4
+PORTREVISION?= 5
CATEGORIES= math
MASTER_SITES= http://www.fftw.org/ \
ftp://ftp.fftw.org/pub/fftw/
@@ -62,6 +62,11 @@ OPENMPI_CONFIGURE_ENV= MPICC=${MPIDIR}/bin/mpicc \
.include <bsd.port.options.mk>
+# Enable cycle counter via the CNTVCT_EL0 register for all variants on arm64.
+.if ${ARCH} == "aarch64"
+CONFIGURE_ARGS+=--enable-armv8-cntvct-el0
+.endif
+
#Users must add altivec to MACHINE_CPU when desired:
#this is not currently done in bsd.cpu.mk
.if ${FFTW3_FLAVOR} == "default"
@@ -93,6 +98,9 @@ CONFIGURE_ARGS+=--enable-sse2
. if !empty(ARCH:Mpowerpc*) && !empty(MACHINE_CPU:Maltivec)
CONFIGURE_ARGS+=--enable-altivec
. endif
+. if ${ARCH} == "aarch64"
+CONFIGURE_ARGS+=--enable-neon
+. endif
. endif
.elif ${FFTW3_FLAVOR} == "long"
FFTW3_SUFX= l