Skip to main content

mpi4py-fft -- FFT with MPI

Project description

mpi4py-fft

https://circleci.com/bb/mpi4py/mpi4py-fft.svg?style=svg https://api.codacy.com/project/badge/Grade/edf0f9ed1e114ab090ac4f9863c05fa3 https://codecov.io/bb/mpi4py/mpi4py-fft/branch/master/graph/badge.svg Documentation Status

mpi4py-fft is a Python package for computing Fast Fourier Transforms (FFTs). Large arrays are distributed and communications are handled under the hood by MPI for Python (mpi4py). To distribute large arrays we are using a new and completely generic algorithm that allows for any index set of a multidimensional array to be distributed. We can distribute just one index (a slab decomposition), two index sets (pencil decomposition) or even more for higher-dimensional arrays.

In mpi4py-fft there is also included a Python interface to the FFTW library. This interface can be used without MPI, much like pyfftw, and even for real-to-real transforms, like discrete cosine or sine transforms.

Further documentation is found at readthedocs.

Installation

The mpi4py-fft package can be installed using:

pip install mpi4py-fft

or, to get the latest version from bitbucket:

pip install git+https://bitbucket.org/mpi4py/mpi4py-fft@master

Install with conda from the coda-forge channel:

conda install -c conda-forge mpi4py-fft

or build it with conda build from the main source directory:

conda build -c conda-forge conf/
conda create --name mpi4py_fft mpi4py_fft --use-local

which will pull in the required dependencies from the conda-forge channel.

Note that mpi4py-fft depends on Python packages

  • mpi4py

  • numpy

  • cython

and the C-library

Note in particular that mpi4py requires that you have a working MPI installation, with the compiler wrapper mpicc, on your search path. The FFTW header and libraries must also be available on the search path, and we will build wrappers for any precision found of the FFTW libraries.

All of the above dependencies are available and will be downloaded through the conda-forge channel if conda is used for installation. However, pip will not help you with MPI or FFTW.

For IO you need to install either h5py or netCDF4 with support for MPI. These libraries are, unfortunately, not yet compiled with MPI on conda-forge. The two libraries are available, though, for both OSX and linux from the spectralDNS channel on anaconda cloud:

conda install -c spectralDNS h5py-parallel netcdf4-parallel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpi4py-fft-1.1.2.tar.gz (29.4 kB view details)

Uploaded Source

File details

Details for the file mpi4py-fft-1.1.2.tar.gz.

File metadata

  • Download URL: mpi4py-fft-1.1.2.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for mpi4py-fft-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8f9700bd5c4a3b431b4587f0be3c51197139b565e00ab7c78d39328e76d11a65
MD5 c51631fbea02aea8b2dc69658b31fcd2
BLAKE2b-256 8dc6951fd205b415d6390fa5d10ec41fd08e2b067df35adc678ad3f968c63a40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page