arXiv:2609.06449cs.DSSep 2026

Manuscript Offprint

arXiv:2609.06449

PACO: A Fully Cache-Oblivious Parallel FFT with One Global Redistribution

Shina Guo, Weiguo Gao, Yuan Tang

Abstract

Fast Fourier transforms (FFTs) on parallel machines incur two distinct forms of data movement: processor-local transfers through the memory hierarchy and global redistribution between processors. Existing four-step FFT organizations can switch the active transform dimension with one global transpose-like exchange, but this property alone does not yield cache-efficient local computation. Conversely, cache-oblivious FFTs obtain asymptotically optimal local memory traffic through recursively applied layout transformations, whose direct materialization can require additional data-rearrangement passes and global exchanges.

We present PACO, a fully cache-oblivious parallel FFT framework that reconciles these objectives. PACO executes

LOCALFFT⟶ONEGLOBALPERMUTATION⟶LOCALFFT.\mathrm{LOCALFFT} \longrightarrow \mathrm{ONEGLOBALPERMUTATION} \longrightarrow \mathrm{LOCALFFT}.

Its local stages recursively partition both transform and batch dimensions without knowledge of the cache parameters. Rather than materializing the transpose-like layouts induced by this recursion, PACO defers them. We show that the deferred layouts compose into a base-bb digit-reversal permutation, which PACO fuses with the redistribution already required to change the local transform dimension. The resulting middle stage is a perfectly balanced parallel cache-oblivious digit-reversal permutation: each source-destination processor pair exchanges exactly N/p2N/p^2 elements (the pp self-pairs incur no network traffic).

Under an exact base-bb slab decomposition in a hybrid ideal-cache/BSP model, PACO computes an NN-point DFT exactly with maximum per-processor work

Θ(Nplog⁡N)\Theta\left(\frac{N}{p}\log N\right)

and maximum per-processor cache complexity

Θ(NpB(1+log⁡MN)).\Theta\left(\frac{N}{p B}\left(1+\log_{M}N\right)\right).

It uses exactly one global redistribution round. PACO returns canonical logical DFT coefficients under a factor-swapped target slab ownership. The single redistribution is necessary under the stated no-replication ownership model, while its communication volume is optimal for the prescribed fused permutation and source-target slab distributions.

1 Introduction

The fast Fourier transform (FFT) is a fundamental primitive in scientific computing, signal processing, and data analysis. The Cooley-Tukey algorithm reduces the arithmetic cost of an NN-point discrete Fourier transform (DFT) from Θ(N2)\Theta(N^2) to Θ(Nlog⁡N)\Theta(N \log N) operations [4]. On modern parallel machines, however, arithmetic is only one component of the execution cost. An FFT must move data through each processor's local memory hierarchy and redistribute data between processors when the active transform dimension changes. Thus, an efficient parallel FFT should simultaneously control processor-local cache traffic and interprocessor communication.

Existing FFT organizations typically optimize one of these forms of data movement more directly than the other. Four-step and six-step FFT organizations reshape a one-dimensional transform into matrix views and use transpose-like operations to switch the active transform dimension [2, 13]. With compatible local kernels and data distributions, a two-factor four-step organization can use one global slab redistribution while producing the canonical DFT coefficient order in a factor-swapped output view. This algebraic one-exchange structure, however, does not by itself guarantee fully cache-oblivious local execution. Conversely, cache-oblivious FFTs obtain asymptotically optimal ideal-cache complexity through recursively applied transpose-like layout transformations [8]. Directly materializing these transformations in a distributed setting may introduce extra local data passes and, when an affected digit field is distributed, additional global redistributions. Other low-communication FFTs reduce the number of global all-to-all operations through alternative factorizations, approximation, oversampling, or additional neighbor-level communication [7, 18]; their numerical and distributional contracts differ from the exact FFT setting considered here.

Problem setting: We consider an exact bounded-radix Cooley–Tukey FFT under an explicit source and target ownership contract. Let

N=N1N2.N=N_{1}N_{2}.

The input is viewed as an N1×N2N_1 \times N_2 row-major matrix distributed by N2N_2-column slabs. The output is viewed as an N2×N1N_2 \times N_1 row-major matrix distributed by N1N_1-column slabs. Its coordinate (k2,k1)(k_2, k_1) represents

y[k1+k2N1].y[k_{1}+k_{2}N_{1}].

Hence the output has canonical logical DFT coefficient indices, but its physical ownership is factor-swapped relative to the input distribution. Restoring the initial slab ownership is not part of the problem and may require a further redistribution.

∗^{*}Corresponding Author; Also affiliated with Shanghai Key Lab. of Intelligent Information Processing.

This paper presents PACO, a Processor-Aware Cache-Oblivious FFT framework that combines fully cache-oblivious local computation with exactly one global redistribution. PACO follows the fixed structure

LOCALFFT⟶ONEGLOBALPERMUTATION⟶LOCALFFT.\mathrm{LOCALFFT}\longrightarrow\mathrm{ONEGLOBALPERMUTATION}\longrightarrow\mathrm{LOCALFFT}.

Its local stages use a cache-oblivious batched FFT scheduler that recursively partitions both transform and batch dimensions without knowledge of the cache capacity M or block size B.

The central observation is that a transpose-free cache-oblivious local FFT does not leave its result in arbitrary disorder. Instead, the layout transformations deferred during local recursion compose into a structured base-b digit-reversal permutation. PACO materializes this complete permutation exactly once, at the redistribution already required between the two top-level Cooley-Tukey transform groups. Thus, the middle stage simultaneously corrects the first local stage's deferred layout, swaps the two factor fields, prepares the layout consumed by the second local stage, and transfers each item to its factor-swapped target owner. PACO does not introduce a separate global communication phase merely to repair digit order.

Contributions. This paper makes the following contributions:

We design a fully cache-oblivious batched Cooley-Tukey FFT scheduler that recursively partitions transform and batch dimensions, avoids recursion-level physical transposes, and achieves asymptotically optimal local work and cache complexity under the stated memory model.

  • We show that the lazy layouts induced by the local recursion compose into PARA-CO-DRP b_{b}, a base-b PARallel Cache-Oblivious Digit-Reversal Permutation, and we fuse that permutation with the ownership change required between the two top-level transform groups. The resulting PARA-CO-DRP b_{b} middle stage uses exactly one global redistribution and routes exactly N/p2N/p^{2} items from every source processor to every destination processor.

  • Under an exact base-b slab decomposition in a hybrid ideal-cache/BSP model, we prove maximum per-processor work

Θ(Nplog⁡N)\Theta\left(\frac{N}{p}\log N\right)

and maximum per-processor cache complexity

Θ(NpB(1+log⁡MN)).\Theta\bigg(\frac{N}{p B}\left(1+\log_{M}N\right)\bigg).

We further prove that one global redistribution round is necessary under the no-replication ownership model, and that PACO's communication volume is optimal for the prescribed fused slab-to-slab permutation.

References (16)