1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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)
This commit is contained in:
Raphael Kubo da Costa 2019-11-03 13:11:01 +00:00
parent e26504a751
commit 0f4d7e486b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=516418

View File

@ -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