svn commit: r516418 - head/math/fftw3
Raphael Kubo da Costa
rakuco at FreeBSD.org
Sun Nov 3 13:11:02 UTC 2019
Author: rakuco
Date: Sun Nov 3 13:11:01 2019
New Revision: 516418
URL: https://svnweb.freebsd.org/changeset/ports/516418
Log:
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 at pyret.net
Reviewed by: mikael.urankar at gmail.com
Approved by: jhale (maintainer timeout, 3 months)
Modified:
head/math/fftw3/Makefile
Modified: head/math/fftw3/Makefile
==============================================================================
--- head/math/fftw3/Makefile Sun Nov 3 13:00:10 2019 (r516417)
+++ head/math/fftw3/Makefile Sun Nov 3 13:11:01 2019 (r516418)
@@ -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"
@@ -92,6 +97,9 @@ CONFIGURE_ARGS+=--enable-sse2
. endif
. 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"
More information about the svn-ports-head
mailing list