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