Chris@10: Chris@10: Chris@10: MPI Files and Data Types - FFTW 3.3.3 Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10:
Chris@10: Chris@10:

Chris@10: Next: , Chris@10: Previous: FFTW MPI Reference, Chris@10: Up: FFTW MPI Reference Chris@10:


Chris@10:
Chris@10: Chris@10:

6.12.1 MPI Files and Data Types

Chris@10: Chris@10:

All programs using FFTW's MPI support should include its header file: Chris@10: Chris@10:

     #include <fftw3-mpi.h>
Chris@10: 
Chris@10:

Note that this header file includes the serial-FFTW fftw3.h Chris@10: header file, and also the mpi.h header file for MPI, so you Chris@10: need not include those files separately. Chris@10: Chris@10:

You must also link to both the FFTW MPI library and to the Chris@10: serial FFTW library. On Unix, this means adding -lfftw3_mpi Chris@10: -lfftw3 -lm at the end of the link command. Chris@10: Chris@10:

Different precisions are handled as in the serial interface: Chris@10: See Precision. That is, ‘fftw_’ functions become Chris@10: fftwf_ (in single precision) etcetera, and the libraries become Chris@10: -lfftw3f_mpi -lfftw3f -lm etcetera on Unix. Long-double Chris@10: precision is supported in MPI, but quad precision (‘fftwq_’) is Chris@10: not due to the lack of MPI support for this type. Chris@10: Chris@10: Chris@10: