annotate src/fftw-3.3.3/tools/fftw-wisdom-to-conf.1 @ 10:37bf6b4a2645

Add FFTW3
author Chris Cannam
date Wed, 20 Mar 2013 15:35:50 +0000
parents
children
rev   line source
Chris@10 1 .\"
Chris@10 2 .\" Copyright (c) 2003, 2007-11 Matteo Frigo
Chris@10 3 .\" Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
Chris@10 4 .\"
Chris@10 5 .\" This program is free software; you can redistribute it and/or modify
Chris@10 6 .\" it under the terms of the GNU General Public License as published by
Chris@10 7 .\" the Free Software Foundation; either version 2 of the License, or
Chris@10 8 .\" (at your option) any later version.
Chris@10 9 .\"
Chris@10 10 .\" This program is distributed in the hope that it will be useful,
Chris@10 11 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@10 12 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@10 13 .\" GNU General Public License for more details.
Chris@10 14 .\"
Chris@10 15 .\" You should have received a copy of the GNU General Public License
Chris@10 16 .\" along with this program; if not, write to the Free Software
Chris@10 17 .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Chris@10 18 .\"
Chris@10 19 .TH FFTW-WISDOM-TO-CONF 1 "February, 2003" "fftw" "fftw"
Chris@10 20 .SH NAME
Chris@10 21 fftw-wisdom-to-conf \- generate FFTW wisdom (pre-planned transforms)
Chris@10 22 .SH SYNOPSIS
Chris@10 23 \fBfftw-wisdom-to-conf\fR [< \fIINPUT\fR] [> \fIOUTPUT\fR]
Chris@10 24 .SH DESCRIPTION
Chris@10 25 .PP
Chris@10 26 ." Add any additional description here
Chris@10 27 .I fftw-wisdom-to-conf
Chris@10 28 is a utility to generate C
Chris@10 29 .B configuration
Chris@10 30 routines from FFTW
Chris@10 31 .B wisdom
Chris@10 32 files, where the latter contain saved information about how to
Chris@10 33 optimally compute (Fourier) transforms of various sizes. A
Chris@10 34 configuration routine is a C subroutine that you link into your
Chris@10 35 program, replacing a routine of the same name in the FFTW library,
Chris@10 36 that determines which parts of FFTW are callable by your program.
Chris@10 37
Chris@10 38 The reason to do this is that, if you only need transforms of a
Chris@10 39 limited set of sizes and types, and if you are statically linking your
Chris@10 40 program, then using a configuration file generated from wisdom for
Chris@10 41 those types can substantially reduce the size of your executable.
Chris@10 42 (Otherwise, because of FFTW's dynamic nature, all of FFTW's transform
Chris@10 43 code must be linked into any program using FFTW.)
Chris@10 44
Chris@10 45 FFTW is a free library to compute discrete Fourier transforms in one
Chris@10 46 or more dimensions, for arbitrary sizes, and of both real and complex
Chris@10 47 data, among other related operations. More information on FFTW can be
Chris@10 48 found at the FFTW home page:
Chris@10 49 .I http://www.fftw.org
Chris@10 50
Chris@10 51 .I fftw-wisdom-to-conf
Chris@10 52 reads wisdom from standard input and writes the configuration to
Chris@10 53 standard output. It can easily be combined with the
Chris@10 54 .I fftw-wisdom
Chris@10 55 tool, for example:
Chris@10 56
Chris@10 57 fftw-wisdom -n cof1024 cob1024 -o wisdom
Chris@10 58 .br
Chris@10 59 fftw-wisdom-to-conf < wisdom > conf.c
Chris@10 60
Chris@10 61 will create a configuration "conf.c" containing only those parts of
Chris@10 62 FFTW needed for the optimized complex forwards and backwards
Chris@10 63 out-of-place transforms of size 1024 (also saving the wisdom itself in
Chris@10 64 "wisdom").
Chris@10 65
Chris@10 66 Alternatively, you can run your actual program, export wisdom for all
Chris@10 67 plans that were created (ideally in FFTW_PATIENT or FFTW_EXHAUSTIVE
Chris@10 68 mode), use this as input for \fIfftw-wisdom-to-conf\fR,
Chris@10 69 and then re-link your program with the resulting configuration routine.
Chris@10 70
Chris@10 71 Note that the configuration routine does not contain the wisdom, only
Chris@10 72 the routines necessary to implement the wisdom, so your program should
Chris@10 73 also import the wisdom in order to benefit from the pre-optimized
Chris@10 74 plans.
Chris@10 75 .SH OPTIONS
Chris@10 76 .TP
Chris@10 77 \fB\-h\fR, \fB\--help\fR
Chris@10 78 Display help on the command-line options and usage.
Chris@10 79 .TP
Chris@10 80 \fB\-V\fR, \fB\--version\fR
Chris@10 81 Print the version number and copyright information.
Chris@10 82 .SH BUGS
Chris@10 83 Send bug reports to fftw@fftw.org.
Chris@10 84 .SH AUTHORS
Chris@10 85 Written by Steven G. Johnson and Matteo Frigo.
Chris@10 86
Chris@10 87 Copyright (c) 2003, 2007-11 Matteo Frigo
Chris@10 88 .br
Chris@10 89 Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
Chris@10 90 .SH "SEE ALSO"
Chris@10 91 fftw-wisdom(1)