From owner-svn-ports-all@freebsd.org Sun Nov 3 13:11:02 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D9BF1B47F0; Sun, 3 Nov 2019 13:11:02 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 475bsK6hcZz46yy; Sun, 3 Nov 2019 13:11:01 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CA376C3EA; Sun, 3 Nov 2019 13:11:01 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xA3DB10B069554; Sun, 3 Nov 2019 13:11:01 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xA3DB1r1069553; Sun, 3 Nov 2019 13:11:01 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201911031311.xA3DB1r1069553@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Sun, 3 Nov 2019 13:11:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r516418 - head/math/fftw3 X-SVN-Group: ports-head X-SVN-Commit-Author: rakuco X-SVN-Commit-Paths: head/math/fftw3 X-SVN-Commit-Revision: 516418 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2019 13:11:02 -0000 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 +# 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"