annotate Lib/fftw-3.2.1/doc/html/.svn/text-base/Caveats-in-Using-Wisdom.html.svn-base @ 9:262e084a15a9

Vectorised everything and made use of unique_ptr so there should be no more memory leaks. Hurrah for RAII
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Wed, 12 Aug 2015 22:25:06 +0100
parents 25bf17994ef1
children
rev   line source
d@0 1 <html lang="en">
d@0 2 <head>
d@0 3 <title>Caveats in Using Wisdom - FFTW 3.2.1</title>
d@0 4 <meta http-equiv="Content-Type" content="text/html">
d@0 5 <meta name="description" content="FFTW 3.2.1">
d@0 6 <meta name="generator" content="makeinfo 4.8">
d@0 7 <link title="Top" rel="start" href="index.html#Top">
d@0 8 <link rel="up" href="Other-Important-Topics.html#Other-Important-Topics" title="Other Important Topics">
d@0 9 <link rel="prev" href="Words-of-Wisdom_002dSaving-Plans.html#Words-of-Wisdom_002dSaving-Plans" title="Words of Wisdom-Saving Plans">
d@0 10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
d@0 11 <!--
d@0 12 This manual is for FFTW
d@0 13 (version 3.2.1, 5 February 2009).
d@0 14
d@0 15 Copyright (C) 2003 Matteo Frigo.
d@0 16
d@0 17 Copyright (C) 2003 Massachusetts Institute of Technology.
d@0 18
d@0 19 Permission is granted to make and distribute verbatim copies of
d@0 20 this manual provided the copyright notice and this permission
d@0 21 notice are preserved on all copies.
d@0 22
d@0 23 Permission is granted to copy and distribute modified versions of
d@0 24 this manual under the conditions for verbatim copying, provided
d@0 25 that the entire resulting derived work is distributed under the
d@0 26 terms of a permission notice identical to this one.
d@0 27
d@0 28 Permission is granted to copy and distribute translations of this
d@0 29 manual into another language, under the above conditions for
d@0 30 modified versions, except that this permission notice may be
d@0 31 stated in a translation approved by the Free Software Foundation.
d@0 32 -->
d@0 33 <meta http-equiv="Content-Style-Type" content="text/css">
d@0 34 <style type="text/css"><!--
d@0 35 pre.display { font-family:inherit }
d@0 36 pre.format { font-family:inherit }
d@0 37 pre.smalldisplay { font-family:inherit; font-size:smaller }
d@0 38 pre.smallformat { font-family:inherit; font-size:smaller }
d@0 39 pre.smallexample { font-size:smaller }
d@0 40 pre.smalllisp { font-size:smaller }
d@0 41 span.sc { font-variant:small-caps }
d@0 42 span.roman { font-family:serif; font-weight:normal; }
d@0 43 span.sansserif { font-family:sans-serif; font-weight:normal; }
d@0 44 --></style>
d@0 45 </head>
d@0 46 <body>
d@0 47 <div class="node">
d@0 48 <p>
d@0 49 <a name="Caveats-in-Using-Wisdom"></a>
d@0 50 Previous:&nbsp;<a rel="previous" accesskey="p" href="Words-of-Wisdom_002dSaving-Plans.html#Words-of-Wisdom_002dSaving-Plans">Words of Wisdom-Saving Plans</a>,
d@0 51 Up:&nbsp;<a rel="up" accesskey="u" href="Other-Important-Topics.html#Other-Important-Topics">Other Important Topics</a>
d@0 52 <hr>
d@0 53 </div>
d@0 54
d@0 55 <h3 class="section">3.4 Caveats in Using Wisdom</h3>
d@0 56
d@0 57 <p><a name="index-wisdom_002c-problems-with-130"></a>
d@0 58 <blockquote>
d@0 59 <i>For in much wisdom is much grief, and he that increaseth knowledge
d@0 60 increaseth sorrow.
d@0 61 </i>[Ecclesiastes 1:18]
d@0 62 <a name="index-Ecclesiastes-131"></a></blockquote>
d@0 63
d@0 64 <p><a name="index-portability-132"></a>There are pitfalls to using wisdom, in that it can negate FFTW's
d@0 65 ability to adapt to changing hardware and other conditions. For
d@0 66 example, it would be perfectly possible to export wisdom from a
d@0 67 program running on one processor and import it into a program running
d@0 68 on another processor. Doing so, however, would mean that the second
d@0 69 program would use plans optimized for the first processor, instead of
d@0 70 the one it is running on.
d@0 71
d@0 72 <p>It should be safe to reuse wisdom as long as the hardware and program
d@0 73 binaries remain unchanged. (Actually, the optimal plan may change even
d@0 74 between runs of the same binary on identical hardware, due to
d@0 75 differences in the virtual memory environment, etcetera. Users
d@0 76 seriously interested in performance should worry about this problem,
d@0 77 too.) It is likely that, if the same wisdom is used for two
d@0 78 different program binaries, even running on the same machine, the
d@0 79 plans may be sub-optimal because of differing code alignments. It is
d@0 80 therefore wise to recreate wisdom every time an application is
d@0 81 recompiled. The more the underlying hardware and software changes
d@0 82 between the creation of wisdom and its use, the greater grows
d@0 83 the risk of sub-optimal plans.
d@0 84
d@0 85 <p>Nevertheless, if the choice is between using <code>FFTW_ESTIMATE</code> or
d@0 86 using possibly-suboptimal wisdom (created on the same machine, but for a
d@0 87 different binary), the wisdom is likely to be better. For this reason,
d@0 88 we provide a function to import wisdom from a standard system-wide
d@0 89 location (<code>/etc/fftw/wisdom</code> on Unix):
d@0 90 <a name="index-wisdom_002c-system_002dwide-133"></a>
d@0 91 <pre class="example"> int fftw_import_system_wisdom(void);
d@0 92 </pre>
d@0 93 <p><a name="index-fftw_005fimport_005fsystem_005fwisdom-134"></a>
d@0 94 FFTW also provides a standalone program, <code>fftw-wisdom</code> (described
d@0 95 by its own <code>man</code> page on Unix) with which users can create wisdom,
d@0 96 e.g. for a canonical set of sizes to store in the system wisdom file.
d@0 97 See <a href="Wisdom-Utilities.html#Wisdom-Utilities">Wisdom Utilities</a>.
d@0 98 <a name="index-fftw_002dwisdom-utility-135"></a>
d@0 99 <!-- ************************************************************ -->
d@0 100
d@0 101 </body></html>
d@0 102