Chris@10: Chris@10: Chris@10: FFTW MPI Installation - 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: Distributed-memory FFTW with MPI, Chris@10: Up: Distributed-memory FFTW with MPI Chris@10:


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

6.1 FFTW MPI Installation

Chris@10: Chris@10:

All of the FFTW MPI code is located in the mpi subdirectory of Chris@10: the FFTW package. On Unix systems, the FFTW MPI libraries and header Chris@10: files are automatically configured, compiled, and installed along with Chris@10: the uniprocessor FFTW libraries simply by including Chris@10: --enable-mpi in the flags to the configure script Chris@10: (see Installation on Unix). Chris@10: Chris@10: Chris@10:

Any implementation of the MPI standard, version 1 or later, should Chris@10: work with FFTW. The configure script will attempt to Chris@10: automatically detect how to compile and link code using your MPI Chris@10: implementation. In some cases, especially if you have multiple Chris@10: different MPI implementations installed or have an unusual MPI Chris@10: software package, you may need to provide this information explicitly. Chris@10: Chris@10:

Most commonly, one compiles MPI code by invoking a special compiler Chris@10: command, typically mpicc for C code. The configure Chris@10: script knows the most common names for this command, but you can Chris@10: specify the MPI compilation command explicitly by setting the Chris@10: MPICC variable, as in ‘./configure MPICC=mpicc ...’. Chris@10: Chris@10: Chris@10:

If, instead of a special compiler command, you need to link a certain Chris@10: library, you can specify the link command via the MPILIBS Chris@10: variable, as in ‘./configure MPILIBS=-lmpi ...’. Note that if Chris@10: your MPI library is installed in a non-standard location (one the Chris@10: compiler does not know about by default), you may also have to specify Chris@10: the location of the library and header files via LDFLAGS and Chris@10: CPPFLAGS variables, respectively, as in ‘./configure Chris@10: LDFLAGS=-L/path/to/mpi/libs CPPFLAGS=-I/path/to/mpi/include ...’. Chris@10: Chris@10: Chris@10: Chris@10: