Date: Sun, 30 May 2004 16:37:42 -0400 (EDT) From: michael johnson <ahze@ahze.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/67393: [MAINTAINER] math/fftw3: [Speed improvements] Message-ID: <20040530203742.2CCD7603B@ahze.ahze.net> Resent-Message-ID: <200405302040.i4UKeFBH066302@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 67393 >Category: ports >Synopsis: [MAINTAINER] math/fftw3: [Speed improvements] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun May 30 13:40:13 PDT 2004 >Closed-Date: >Last-Modified: >Originator: michael johnson >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #45: Mon May 3 05:09:04 EDT >Description: - Enable SSE2 for libfftw - Don't force 16-byte aligned malloc Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- fftw3-3.0.1_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/math/fftw3.orig/Makefile /usr/ports/math/fftw3/Makefile --- /usr/ports/math/fftw3.orig/Makefile Sun May 30 16:33:32 2004 +++ /usr/ports/math/fftw3/Makefile Sun May 30 16:25:24 2004 @@ -27,11 +27,11 @@ MAN1= fftw-wisdom-to-conf.1 fftw-wisdom.1 fftwf-wisdom.1 INFO= fftw3 -CONFIGURE_ARGS= --enable-shared --with-our-malloc16 +CONFIGURE_ARGS= --enable-shared CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" # FFTW --enable-single Options -CONFIGURE_ARGS_FFTW3F=--enable-single ${CONFIGURE_ARGS} +CONFIGURE_ARGS_FFTW3F=--enable-single ${CONFIGURE_ARGS:N--enable-sse2} FFTW3F_WRKSRC= ${WRKDIR}/${DISTNAME}-3F FFTW3F_INSTALL_TARGET=install-pkgconfigDATA install-libLTLIBRARIES install-exec @@ -54,6 +54,7 @@ .endif .if defined(WITH_SSE) +CONFIGURE_ARGS+=--enable-sse2 CONFIGURE_ARGS_FFTW3F+=--enable-sse CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-O:N-O*} -O2" .endif diff -ruN --exclude=CVS /usr/ports/math/fftw3.orig/files/patch-alloc.c /usr/ports/math/fftw3/files/patch-alloc.c --- /usr/ports/math/fftw3.orig/files/patch-alloc.c Wed Dec 31 19:00:00 1969 +++ /usr/ports/math/fftw3/files/patch-alloc.c Sun May 30 16:28:10 2004 @@ -0,0 +1,21 @@ +--- kernel/alloc.c.orig Sun May 30 16:26:22 2004 ++++ kernel/alloc.c Sun May 30 16:27:34 2004 +@@ -30,6 +30,8 @@ + # endif + #endif + ++#include <stdlib.h> ++ + #if defined(HAVE_DECL_POSIX_MEMALIGN) && !HAVE_DECL_POSIX_MEMALIGN + extern int posix_memalign(void **, size_t, size_t); + #endif +@@ -122,9 +124,6 @@ + # define real_free MPFree + + # else +- /* Add your machine here and send a patch to fftw@fftw.org +- or (e.g. for Windows) configure --with-our-malloc16 */ +-# error "Don't know how to malloc() aligned memory." + # endif + + #else /* !defined(MIN_ALIGMENT) */ --- fftw3-3.0.1_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040530203742.2CCD7603B>