dtfft
Python bindings for dtFFT — a high-performance library for parallel data transpositions and Fast Fourier Transforms via MPI.
This package is distributed as a source distribution (sdist) and is compiled locally during installation. It gives you full control over all build options via CMake flags.
If you need a pre-built wheel (no compiler required), use one of the variant packages:
dtfft-openmpi,dtfft-mpich,dtfft-fftw-openmpi,dtfft-cuda12x-openmpi, etc. See the full list on PyPI or the documentation.
Installation
Building from source requires a Fortran compiler (GCC ≥ 10, Intel, or NVHPC), CMake ≥ 3.25,
and an MPI implementation with development headers.
Build-time Python dependencies (scikit-build, cmake, ninja, pybind11) are installed
automatically by pip.
Important:
mpi4pyin your environment must be compiled against the same MPI implementation that dtFFT will be linked with. Install it from source:pip install --no-binary mpi4py mpi4py
Transpose-only (no FFT backend):
pip install dtfft
With FFTW3:
CMAKE_ARGS="-DDTFFT_WITH_FFTW=ON" pip install dtfft
With cuFFT (CUDA):
Also install
cupymatching your CUDA toolkit version first, e.g.pip install cupy-cuda12x.
CMAKE_ARGS="-DDTFFT_WITH_CUDA=ON -DDTFFT_WITH_CUFFT=ON" pip install dtfft
Any CMake option documented on the
build page
can be passed via CMAKE_ARGS.
Quick start
import numpy as np
from mpi4py import MPI
import dtfft
# Create a 3-D complex-to-complex plan
plan = dtfft.PlanC2C([256, 256, 256], comm=MPI.COMM_WORLD)
# Allocate MPI-decomposed buffers
x = plan.get_ndarray(plan.alloc_size)
y = plan.get_ndarray(plan.alloc_size)
x[...] = np.random.random(x.shape) + 1j * np.random.random(x.shape)
# Forward transform (pencil decomposition applied automatically)
plan.execute(x, y, dtfft.Execute.FORWARD)
# Backward transform
plan.execute(y, x, dtfft.Execute.BACKWARD)
Documentation
License
GPL v3 — see LICENSE.
Metadata
Release files for dtfft 3.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dtfft-3.3.0.tar.gz | 376.4 kB | With provenance | Details for dtfft-3.3.0.tar.gz |
Release files / dtfft-3.3.0.tar.gz
| Download URL | dtfft-3.3.0.tar.gz |
|---|---|
| Size | 376.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ebb40e3d1f3c8197c94842a31c48328bee8831bc4e9277b1c1ab1fb3fd0e339
|
|
BLAKE2b-256 checksum How to use checksums |
fd6acb9f94e58d819493d8e46897b5dc5cd69b5df56a8cf904f6260fad3bb6f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logSecurity for dtfft 3.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for dtfft-3.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.