Date: Sun, 3 Nov 2019 13:11:01 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r516418 - head/math/fftw3 Message-ID: <201911031311.xA3DB1r1069553@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@pyret.net Reviewed by: mikael.urankar@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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911031311.xA3DB1r1069553>