Skip to content
P3DFFT stands for Parallel Three-Dimensional Fast Fourier Transforms. It is a library for large-scale computer simulations on parallel platforms. It implements 3D FFT and related algorithms such as Chebyshev transform (an important class of algorithm for simulations in a wide range of fields). P3DFFT uses 2D, or pencil, decomposition. For more i…
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Merge branch 'master' of Jun 27, 2019
include Adding UCSD Copyright notice and license terms Mar 25, 2019
sample Fixing C sine_many Mar 2, 2018
.gitignore removed ghosts.F90 from build process Jan 27, 2016
ChangeLog fixed Make build process Dec 16, 2015
INSTALL Revert "Merge branch 'CyrilleBonamy-master'" Apr 10, 2016
NEWS made new trunk Aug 9, 2014
README Test Mar 14, 2017
compile fixed configure to not use openMP for cray compilers by default, adde… Apr 8, 2016
configure Fixing bugs; fixing C compilation and _many.c Feb 28, 2018 Fixing bugs; fixing C compilation and _many.c Feb 28, 2018
depcomp made new trunk Aug 9, 2014
install-sh made new trunk Aug 9, 2014
stamp-h1 made new trunk Aug 9, 2014


P3DFFT - Highly scalable parallel 3D Fast Fourier Transforms library

Version 2.7

Copyright (C) 2006-2015 Dmitry Pekurovsky
Copyright (C) 2006-2015 University of California
Copyright (C) 2010-2011 Jens Henrik Goebbert
San Diego Supercomputer Center/UC SanDiego


! P3DFFT is free software: you can redistribute it and/or modify
! it under the terms of the GNU General Public License as published by
! the Free Software Foundation, either version 3 of the License, or
! (at your option) any later version.
! P3DFFT is distributed in the hope that it will be useful,
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! GNU General Public License for more details.
! You should have received a copy of the GNU General Public License
! along with P3DFFT.  If not, see <>.


    * Parallel implementation of 3D FFT with 2D (a.k.a. pencils) data 
decomposition, overcoming an important limitation to scalability of other 
3D FFT libraries implementing 1D, or slab, decomposition.
    * Optimized for parallel communication and single-CPU performance.
    * Uses established libraries (FFTW, ESSL) for underlying local 1D FFT. 
    * Fortran and C interfaces.
    * Pruned input/output options
    * User-defined communicator

The 1D decomposition suffers from the limitation that the number
of processors used cannot be greater than the maximum linear grid size of the 
cubic domain to be processed. With the 2D domain decomposition scheme 
the maximum number of processors is significantly higher, equal to the 
square of the linear grid size. 

This library is especially suited for large-data-volume applications on ultra-scale
parallel platforms. 

Machine requirements

This library is built on top of an externally provided 1D FFT library. 
Current choices are ESSL (for IBM systems) or FFTW. Either one of these 
libraries must be installed on the system in order to use P3DFFT.
The choice of the library is specified at compile time. 

P3DFFT is written in Fortran 90 with MPI. Having an Fortran90/MPI compiler
is essential to building the library on your system. C interface is 

P3DFFT currently supports compilation by PGI, Intel, GCC and IBM 
compilers. Additional support for other compilers will be added in the future.

Directory structure

  The library files are contained here. Building the library is required 
  before it can be used. In order to build the library, you must run 
  ./configure from the top level directory. Then type "make" 
  and then "make install". For further instructions
  on building the library see the P3DFFT User Guide, or visit the web site You can also see a list of options
  by typing "./configure --help". 
  This directory has example programs in both FORTRAN and C, in 
  separate subdirectories. Tests provided include
  out-of-place and in-place transforms 3D FFT, with error checking. 
  Also provided is an example of power spectrum calculation. 
  Example programs will be compiled automatically with the library 
  during make. 
  The library is provided as a Fortran module. 
  After installation this directory will have p3dfft.mod (for Fortran interface),
  p3dfft.h (the C wrapper/include file), and config.h (header generated by 
  configure script that contains all arguments used when configure script was

Please send your feedback, including bugs and suggestions, to 
Dmitry Pekurovsky,, or open an issue on github 

You can’t perform that action at this time.