comparison src/fftw-3.3.3/doc/html/Load-balancing.html @ 10:37bf6b4a2645

Add FFTW3
author Chris Cannam
date Wed, 20 Mar 2013 15:35:50 +0000
parents
children
comparison
equal deleted inserted replaced
9:c0fb53affa76 10:37bf6b4a2645
1 <html lang="en">
2 <head>
3 <title>Load balancing - FFTW 3.3.3</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="FFTW 3.3.3">
6 <meta name="generator" content="makeinfo 4.13">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="MPI-Data-Distribution.html#MPI-Data-Distribution" title="MPI Data Distribution">
9 <link rel="prev" href="Basic-and-advanced-distribution-interfaces.html#Basic-and-advanced-distribution-interfaces" title="Basic and advanced distribution interfaces">
10 <link rel="next" href="Transposed-distributions.html#Transposed-distributions" title="Transposed distributions">
11 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12 <!--
13 This manual is for FFTW
14 (version 3.3.3, 25 November 2012).
15
16 Copyright (C) 2003 Matteo Frigo.
17
18 Copyright (C) 2003 Massachusetts Institute of Technology.
19
20 Permission is granted to make and distribute verbatim copies of
21 this manual provided the copyright notice and this permission
22 notice are preserved on all copies.
23
24 Permission is granted to copy and distribute modified versions of
25 this manual under the conditions for verbatim copying, provided
26 that the entire resulting derived work is distributed under the
27 terms of a permission notice identical to this one.
28
29 Permission is granted to copy and distribute translations of this
30 manual into another language, under the above conditions for
31 modified versions, except that this permission notice may be
32 stated in a translation approved by the Free Software Foundation.
33 -->
34 <meta http-equiv="Content-Style-Type" content="text/css">
35 <style type="text/css"><!--
36 pre.display { font-family:inherit }
37 pre.format { font-family:inherit }
38 pre.smalldisplay { font-family:inherit; font-size:smaller }
39 pre.smallformat { font-family:inherit; font-size:smaller }
40 pre.smallexample { font-size:smaller }
41 pre.smalllisp { font-size:smaller }
42 span.sc { font-variant:small-caps }
43 span.roman { font-family:serif; font-weight:normal; }
44 span.sansserif { font-family:sans-serif; font-weight:normal; }
45 --></style>
46 </head>
47 <body>
48 <div class="node">
49 <a name="Load-balancing"></a>
50 <p>
51 Next:&nbsp;<a rel="next" accesskey="n" href="Transposed-distributions.html#Transposed-distributions">Transposed distributions</a>,
52 Previous:&nbsp;<a rel="previous" accesskey="p" href="Basic-and-advanced-distribution-interfaces.html#Basic-and-advanced-distribution-interfaces">Basic and advanced distribution interfaces</a>,
53 Up:&nbsp;<a rel="up" accesskey="u" href="MPI-Data-Distribution.html#MPI-Data-Distribution">MPI Data Distribution</a>
54 <hr>
55 </div>
56
57 <h4 class="subsection">6.4.2 Load balancing</h4>
58
59 <p><a name="index-load-balancing-378"></a>
60 Ideally, when you parallelize a transform over some P
61 processes, each process should end up with work that takes equal time.
62 Otherwise, all of the processes end up waiting on whichever process is
63 slowest. This goal is known as &ldquo;load balancing.&rdquo; In this section,
64 we describe the circumstances under which FFTW is able to load-balance
65 well, and in particular how you should choose your transform size in
66 order to load balance.
67
68 <p>Load balancing is especially difficult when you are parallelizing over
69 heterogeneous machines; for example, if one of your processors is a
70 old 486 and another is a Pentium IV, obviously you should give the
71 Pentium more work to do than the 486 since the latter is much slower.
72 FFTW does not deal with this problem, however&mdash;it assumes that your
73 processes run on hardware of comparable speed, and that the goal is
74 therefore to divide the problem as equally as possible.
75
76 <p>For a multi-dimensional complex DFT, FFTW can divide the problem
77 equally among the processes if: (i) the <em>first</em> dimension
78 <code>n0</code> is divisible by P; and (ii), the <em>product</em> of
79 the subsequent dimensions is divisible by P. (For the advanced
80 interface, where you can specify multiple simultaneous transforms via
81 some &ldquo;vector&rdquo; length <code>howmany</code>, a factor of <code>howmany</code> is
82 included in the product of the subsequent dimensions.)
83
84 <p>For a one-dimensional complex DFT, the length <code>N</code> of the data
85 should be divisible by P <em>squared</em> to be able to divide
86 the problem equally among the processes.
87
88 </body></html>
89