comparison src/fftw-3.3.3/doc/html/FFTW-MPI-Installation.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>FFTW MPI Installation - 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="Distributed_002dmemory-FFTW-with-MPI.html#Distributed_002dmemory-FFTW-with-MPI" title="Distributed-memory FFTW with MPI">
9 <link rel="prev" href="Distributed_002dmemory-FFTW-with-MPI.html#Distributed_002dmemory-FFTW-with-MPI" title="Distributed-memory FFTW with MPI">
10 <link rel="next" href="Linking-and-Initializing-MPI-FFTW.html#Linking-and-Initializing-MPI-FFTW" title="Linking and Initializing MPI FFTW">
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="FFTW-MPI-Installation"></a>
50 <p>
51 Next:&nbsp;<a rel="next" accesskey="n" href="Linking-and-Initializing-MPI-FFTW.html#Linking-and-Initializing-MPI-FFTW">Linking and Initializing MPI FFTW</a>,
52 Previous:&nbsp;<a rel="previous" accesskey="p" href="Distributed_002dmemory-FFTW-with-MPI.html#Distributed_002dmemory-FFTW-with-MPI">Distributed-memory FFTW with MPI</a>,
53 Up:&nbsp;<a rel="up" accesskey="u" href="Distributed_002dmemory-FFTW-with-MPI.html#Distributed_002dmemory-FFTW-with-MPI">Distributed-memory FFTW with MPI</a>
54 <hr>
55 </div>
56
57 <h3 class="section">6.1 FFTW MPI Installation</h3>
58
59 <p>All of the FFTW MPI code is located in the <code>mpi</code> subdirectory of
60 the FFTW package. On Unix systems, the FFTW MPI libraries and header
61 files are automatically configured, compiled, and installed along with
62 the uniprocessor FFTW libraries simply by including
63 <code>--enable-mpi</code> in the flags to the <code>configure</code> script
64 (see <a href="Installation-on-Unix.html#Installation-on-Unix">Installation on Unix</a>).
65 <a name="index-configure-349"></a>
66
67 <p>Any implementation of the MPI standard, version 1 or later, should
68 work with FFTW. The <code>configure</code> script will attempt to
69 automatically detect how to compile and link code using your MPI
70 implementation. In some cases, especially if you have multiple
71 different MPI implementations installed or have an unusual MPI
72 software package, you may need to provide this information explicitly.
73
74 <p>Most commonly, one compiles MPI code by invoking a special compiler
75 command, typically <code>mpicc</code> for C code. The <code>configure</code>
76 script knows the most common names for this command, but you can
77 specify the MPI compilation command explicitly by setting the
78 <code>MPICC</code> variable, as in &lsquo;<samp><span class="samp">./configure MPICC=mpicc ...</span></samp>&rsquo;.
79 <a name="index-mpicc-350"></a>
80
81 <p>If, instead of a special compiler command, you need to link a certain
82 library, you can specify the link command via the <code>MPILIBS</code>
83 variable, as in &lsquo;<samp><span class="samp">./configure MPILIBS=-lmpi ...</span></samp>&rsquo;. Note that if
84 your MPI library is installed in a non-standard location (one the
85 compiler does not know about by default), you may also have to specify
86 the location of the library and header files via <code>LDFLAGS</code> and
87 <code>CPPFLAGS</code> variables, respectively, as in &lsquo;<samp><span class="samp">./configure
88 LDFLAGS=-L/path/to/mpi/libs CPPFLAGS=-I/path/to/mpi/include ...</span></samp>&rsquo;.
89
90 <!-- -->
91 </body></html>
92