d@0: d@0:
d@0:d@0: d@0: Next: Simple MPI example, d@0: Previous: FFTW MPI Installation, d@0: Up: Distributed-memory FFTW with MPI d@0:
Programs using the MPI FFTW routines should be linked with
d@0: -lfftw3_mpi -lfftw3 -lm
on Unix. You will also need to link
d@0: with whatever library is responsible for MPI on your system; in most
d@0: MPI implementations, there is a special compiler alias named
d@0: mpicc
to compile and link MPI code.
d@0:
d@0: Before calling any FFTW routines, but after calling MPI_Init
,
d@0: you should call the function:
d@0:
d@0:
void fftw_mpi_init(void); d@0:d@0:
d@0: If, at the end of your program, you want to get rid of all memory and d@0: other resources allocated internally by FFTW, for both the serial and d@0: MPI routines, you can call: d@0: d@0:
void fftw_mpi_cleanup(void); d@0:d@0:
d@0: which is much like the fftw_cleanup()
function except that it
d@0: also gets rid of FFTW's MPI-related data. You must not execute
d@0: any previously created plans after calling this function.
d@0:
d@0:
d@0:
d@0: