Skip to main content

mpi4py-fft -- Parallel Fast Fourier Transforms (FFTs) using MPI for Python

Project description

mpi4py-fft

https://dev.azure.com/mpi4py/mpi4py-fft/_apis/build/status/mpi4py.mpi4py-fft?branchName=master https://codecov.io/bb/mpi4py/mpi4py-fft/branch/master/graph/badge.svg Documentation Status Total downloads from conda-forge

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.

mpi4py-fft comes with its own Python interface to the serial FFTW library. This interface can be used 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 GitHub:

pip install git+https://github.com/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 serial 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. Both are available from the coda-forge channel through:

conda install -c conda-forge h5py=*=mpi* netcdf4=*=mpi*

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-2.0.5.tar.gz (36.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: mpi4py-fft-2.0.5.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for mpi4py-fft-2.0.5.tar.gz
Algorithm Hash digest
SHA256 7a8c7826f5c693a40beef1035f718f9cad0c4291934edc15d65bdcd13eac8a3b
MD5 abe3023a236bddb9e8304d8bfbcff10d
BLAKE2b-256 45689857b84a9947b2eafc1387b6d2cd6f4c3772ff0b857a046c349f64dadda9

See more details on using hashes here.

Provenance

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