annotate fft/fftw/fftw-3.3.4/doc/html/Distributed_002dmemory-FFTW-with-MPI.html @ 40:223f770b5341 kissfft-double tip

Try a double-precision kissfft
author Chris Cannam
date Wed, 07 Sep 2016 10:40:32 +0100
parents 26056e866c29
children
rev   line source
Chris@19 1 <html lang="en">
Chris@19 2 <head>
Chris@19 3 <title>Distributed-memory FFTW with MPI - FFTW 3.3.4</title>
Chris@19 4 <meta http-equiv="Content-Type" content="text/html">
Chris@19 5 <meta name="description" content="FFTW 3.3.4">
Chris@19 6 <meta name="generator" content="makeinfo 4.13">
Chris@19 7 <link title="Top" rel="start" href="index.html#Top">
Chris@19 8 <link rel="prev" href="Multi_002dthreaded-FFTW.html#Multi_002dthreaded-FFTW" title="Multi-threaded FFTW">
Chris@19 9 <link rel="next" href="Calling-FFTW-from-Modern-Fortran.html#Calling-FFTW-from-Modern-Fortran" title="Calling FFTW from Modern Fortran">
Chris@19 10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
Chris@19 11 <!--
Chris@19 12 This manual is for FFTW
Chris@19 13 (version 3.3.4, 20 September 2013).
Chris@19 14
Chris@19 15 Copyright (C) 2003 Matteo Frigo.
Chris@19 16
Chris@19 17 Copyright (C) 2003 Massachusetts Institute of Technology.
Chris@19 18
Chris@19 19 Permission is granted to make and distribute verbatim copies of
Chris@19 20 this manual provided the copyright notice and this permission
Chris@19 21 notice are preserved on all copies.
Chris@19 22
Chris@19 23 Permission is granted to copy and distribute modified versions of
Chris@19 24 this manual under the conditions for verbatim copying, provided
Chris@19 25 that the entire resulting derived work is distributed under the
Chris@19 26 terms of a permission notice identical to this one.
Chris@19 27
Chris@19 28 Permission is granted to copy and distribute translations of this
Chris@19 29 manual into another language, under the above conditions for
Chris@19 30 modified versions, except that this permission notice may be
Chris@19 31 stated in a translation approved by the Free Software Foundation.
Chris@19 32 -->
Chris@19 33 <meta http-equiv="Content-Style-Type" content="text/css">
Chris@19 34 <style type="text/css"><!--
Chris@19 35 pre.display { font-family:inherit }
Chris@19 36 pre.format { font-family:inherit }
Chris@19 37 pre.smalldisplay { font-family:inherit; font-size:smaller }
Chris@19 38 pre.smallformat { font-family:inherit; font-size:smaller }
Chris@19 39 pre.smallexample { font-size:smaller }
Chris@19 40 pre.smalllisp { font-size:smaller }
Chris@19 41 span.sc { font-variant:small-caps }
Chris@19 42 span.roman { font-family:serif; font-weight:normal; }
Chris@19 43 span.sansserif { font-family:sans-serif; font-weight:normal; }
Chris@19 44 --></style>
Chris@19 45 </head>
Chris@19 46 <body>
Chris@19 47 <div class="node">
Chris@19 48 <a name="Distributed-memory-FFTW-with-MPI"></a>
Chris@19 49 <a name="Distributed_002dmemory-FFTW-with-MPI"></a>
Chris@19 50 <p>
Chris@19 51 Next:&nbsp;<a rel="next" accesskey="n" href="Calling-FFTW-from-Modern-Fortran.html#Calling-FFTW-from-Modern-Fortran">Calling FFTW from Modern Fortran</a>,
Chris@19 52 Previous:&nbsp;<a rel="previous" accesskey="p" href="Multi_002dthreaded-FFTW.html#Multi_002dthreaded-FFTW">Multi-threaded FFTW</a>,
Chris@19 53 Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
Chris@19 54 <hr>
Chris@19 55 </div>
Chris@19 56
Chris@19 57 <h2 class="chapter">6 Distributed-memory FFTW with MPI</h2>
Chris@19 58
Chris@19 59 <p><a name="index-MPI-347"></a>
Chris@19 60 <a name="index-parallel-transform-348"></a>In this chapter we document the parallel FFTW routines for parallel
Chris@19 61 systems supporting the MPI message-passing interface. Unlike the
Chris@19 62 shared-memory threads described in the previous chapter, MPI allows
Chris@19 63 you to use <em>distributed-memory</em> parallelism, where each CPU has
Chris@19 64 its own separate memory, and which can scale up to clusters of many
Chris@19 65 thousands of processors. This capability comes at a price, however:
Chris@19 66 each process only stores a <em>portion</em> of the data to be
Chris@19 67 transformed, which means that the data structures and
Chris@19 68 programming-interface are quite different from the serial or threads
Chris@19 69 versions of FFTW.
Chris@19 70 <a name="index-data-distribution-349"></a>
Chris@19 71
Chris@19 72 <p>Distributed-memory parallelism is especially useful when you are
Chris@19 73 transforming arrays so large that they do not fit into the memory of a
Chris@19 74 single processor. The storage per-process required by FFTW's MPI
Chris@19 75 routines is proportional to the total array size divided by the number
Chris@19 76 of processes. Conversely, distributed-memory parallelism can easily
Chris@19 77 pose an unacceptably high communications overhead for small problems;
Chris@19 78 the threshold problem size for which parallelism becomes advantageous
Chris@19 79 will depend on the precise problem you are interested in, your
Chris@19 80 hardware, and your MPI implementation.
Chris@19 81
Chris@19 82 <p>A note on terminology: in MPI, you divide the data among a set of
Chris@19 83 &ldquo;processes&rdquo; which each run in their own memory address space.
Chris@19 84 Generally, each process runs on a different physical processor, but
Chris@19 85 this is not required. A set of processes in MPI is described by an
Chris@19 86 opaque data structure called a &ldquo;communicator,&rdquo; the most common of
Chris@19 87 which is the predefined communicator <code>MPI_COMM_WORLD</code> which
Chris@19 88 refers to <em>all</em> processes. For more information on these and
Chris@19 89 other concepts common to all MPI programs, we refer the reader to the
Chris@19 90 documentation at <a href="http://www.mcs.anl.gov/research/projects/mpi/">the MPI home page</a>.
Chris@19 91 <a name="index-MPI-communicator-350"></a><a name="index-MPI_005fCOMM_005fWORLD-351"></a>
Chris@19 92
Chris@19 93 <p>We assume in this chapter that the reader is familiar with the usage
Chris@19 94 of the serial (uniprocessor) FFTW, and focus only on the concepts new
Chris@19 95 to the MPI interface.
Chris@19 96
Chris@19 97 <ul class="menu">
Chris@19 98 <li><a accesskey="1" href="FFTW-MPI-Installation.html#FFTW-MPI-Installation">FFTW MPI Installation</a>
Chris@19 99 <li><a accesskey="2" href="Linking-and-Initializing-MPI-FFTW.html#Linking-and-Initializing-MPI-FFTW">Linking and Initializing MPI FFTW</a>
Chris@19 100 <li><a accesskey="3" href="2d-MPI-example.html#g_t2d-MPI-example">2d MPI example</a>
Chris@19 101 <li><a accesskey="4" href="MPI-Data-Distribution.html#MPI-Data-Distribution">MPI Data Distribution</a>
Chris@19 102 <li><a accesskey="5" href="Multi_002ddimensional-MPI-DFTs-of-Real-Data.html#Multi_002ddimensional-MPI-DFTs-of-Real-Data">Multi-dimensional MPI DFTs of Real Data</a>
Chris@19 103 <li><a accesskey="6" href="Other-Multi_002ddimensional-Real_002ddata-MPI-Transforms.html#Other-Multi_002ddimensional-Real_002ddata-MPI-Transforms">Other Multi-dimensional Real-data MPI Transforms</a>
Chris@19 104 <li><a accesskey="7" href="FFTW-MPI-Transposes.html#FFTW-MPI-Transposes">FFTW MPI Transposes</a>
Chris@19 105 <li><a accesskey="8" href="FFTW-MPI-Wisdom.html#FFTW-MPI-Wisdom">FFTW MPI Wisdom</a>
Chris@19 106 <li><a accesskey="9" href="Avoiding-MPI-Deadlocks.html#Avoiding-MPI-Deadlocks">Avoiding MPI Deadlocks</a>
Chris@19 107 <li><a href="FFTW-MPI-Performance-Tips.html#FFTW-MPI-Performance-Tips">FFTW MPI Performance Tips</a>
Chris@19 108 <li><a href="Combining-MPI-and-Threads.html#Combining-MPI-and-Threads">Combining MPI and Threads</a>
Chris@19 109 <li><a href="FFTW-MPI-Reference.html#FFTW-MPI-Reference">FFTW MPI Reference</a>
Chris@19 110 <li><a href="FFTW-MPI-Fortran-Interface.html#FFTW-MPI-Fortran-Interface">FFTW MPI Fortran Interface</a>
Chris@19 111 </ul>
Chris@19 112
Chris@19 113 <!-- -->
Chris@19 114 </body></html>
Chris@19 115