Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: FFTW 3.3.5: FFTW MPI Installation Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42:
Chris@42:

Chris@42: Next: , Previous: , Up: Distributed-memory FFTW with MPI   [Contents][Index]

Chris@42:
Chris@42:
Chris@42: Chris@42:

6.1 FFTW MPI Installation

Chris@42: Chris@42:

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

Chris@42: Chris@42:

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

Chris@42:

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

Chris@42: Chris@42:

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

Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: