Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > f949c940bce372b03cb072dd0ee090a1 > files > 72

fftw-doc-3.3.3-5.fc18.noarch.rpm

<html lang="en">
<head>
<title>MPI Files and Data Types - FFTW 3.3.3</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="FFTW 3.3.3">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="FFTW-MPI-Reference.html#FFTW-MPI-Reference" title="FFTW MPI Reference">
<link rel="prev" href="FFTW-MPI-Reference.html#FFTW-MPI-Reference" title="FFTW MPI Reference">
<link rel="next" href="MPI-Initialization.html#MPI-Initialization" title="MPI Initialization">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This manual is for FFTW
(version 3.3.3, 25 November 2012).

Copyright (C) 2003 Matteo Frigo.

Copyright (C) 2003 Massachusetts Institute of Technology.

     Permission is granted to make and distribute verbatim copies of
     this manual provided the copyright notice and this permission
     notice are preserved on all copies.

     Permission is granted to copy and distribute modified versions of
     this manual under the conditions for verbatim copying, provided
     that the entire resulting derived work is distributed under the
     terms of a permission notice identical to this one.

     Permission is granted to copy and distribute translations of this
     manual into another language, under the above conditions for
     modified versions, except that this permission notice may be
     stated in a translation approved by the Free Software Foundation.
   -->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="MPI-Files-and-Data-Types"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="MPI-Initialization.html#MPI-Initialization">MPI Initialization</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="FFTW-MPI-Reference.html#FFTW-MPI-Reference">FFTW MPI Reference</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="FFTW-MPI-Reference.html#FFTW-MPI-Reference">FFTW MPI Reference</a>
<hr>
</div>

<h4 class="subsection">6.12.1 MPI Files and Data Types</h4>

<p>All programs using FFTW's MPI support should include its header file:

<pre class="example">     #include &lt;fftw3-mpi.h&gt;
</pre>
   <p>Note that this header file includes the serial-FFTW <code>fftw3.h</code>
header file, and also the <code>mpi.h</code> header file for MPI, so you
need not include those files separately.

   <p>You must also link to <em>both</em> the FFTW MPI library and to the
serial FFTW library.  On Unix, this means adding <code>-lfftw3_mpi
-lfftw3 -lm</code> at the end of the link command.

   <p><a name="index-precision-433"></a>Different precisions are handled as in the serial interface:
See <a href="Precision.html#Precision">Precision</a>.  That is, &lsquo;<samp><span class="samp">fftw_</span></samp>&rsquo; functions become
<code>fftwf_</code> (in single precision) etcetera, and the libraries become
<code>-lfftw3f_mpi -lfftw3f -lm</code> etcetera on Unix.  Long-double
precision is supported in MPI, but quad precision (&lsquo;<samp><span class="samp">fftwq_</span></samp>&rsquo;) is
not due to the lack of MPI support for this type.

   </body></html>