[Paper Review] Novel Model-based Methods for Performance Optimization of Multithreaded 2D Discrete Fourier Transform on Multicore Processors
This paper proposes PFFT-FPM and PFFT-FPM-PAD, novel model-based methods for optimizing multithreaded 2D Discrete Fourier Transform (2D-DFT) on multicore processors using functional performance models (FPMs) to enable portable, adaptive load balancing. Experiments on an Intel Haswell server show average speedups of 2.0x and 1.4x over FFTW-3.3.7 and Intel MKL FFT, respectively, with maximum speedups up to 9.4x, significantly improving performance over unoptimized versions.
In this paper, we use multithreaded fast Fourier transforms provided in three highly optimized packages, FFTW-2.1.5, FFTW-3.3.7, and Intel MKL FFT, to present a novel model-based parallel computing technique as a very effective and portable method for optimization of scientific multithreaded routines for performance, especially in the current multicore era where the processors have abundant number of cores. We propose two optimization methods, PFFT-FPM and PFFT-FPM-PAD, based on this technique. They compute 2D-DFT of a complex signal matrix of size NxN using p abstract processors. Both algorithms take as inputs, discrete 3D functions of performance against problem size of the processors and output the transformed signal matrix. Based on our experiments on a modern Intel Haswell multicore server consisting of 36 physical cores, the average and maximum speedups observed for PFFT-FPM using FFTW-3.3.7 are 1.9x and 6.8x respectively and the average and maximum speedups observed using Intel MKL FFT are 1.3x and 2x respectively. The average and maximum speedups observed for PFFT-FPM-PAD using FFTW-3.3.7 are 2x and 9.4x respectively and the average and maximum speedups observed using Intel MKL FFT are 1.4x and 5.9x respectively.
Motivation & Objective
- To address the limitations of architecture-specific code optimization in the face of rapidly evolving hardware, particularly the Red Queen effect where extensive optimization yields no long-term performance gain.
- To challenge the assumption that vendor-optimized libraries like Intel MKL FFT always outperform open-source alternatives such as FFTW, especially in average-case performance.
- To develop a portable, model-based optimization technique that adapts to performance variations across problem sizes and processor configurations.
- To improve the average performance of multithreaded 2D-DFT implementations on modern multicore systems through intelligent, adaptive data partitioning guided by functional performance models.
- To demonstrate that model-based optimization can outperform both legacy and highly tuned vendor libraries across diverse problem sizes.
Proposed method
- The method uses functional performance models (FPMs) as continuous functions of problem size to predict processor performance, enabling data-driven load balancing.
- PFFT-FPM partitions the 2D signal matrix across p abstract processors based on FPMs to minimize total execution time.
- PFFT-FPM-PAD enhances PFFT-FPM by incorporating padding to improve load balance and reduce load imbalance effects.
- The algorithms take discrete 3D performance functions (processor, problem size, performance) as input and output the optimized 2D-DFT result.
- Performance models are derived empirically from profiling FFTW-2.1.5, FFTW-3.3.7, and Intel MKL FFT across 1000 problem sizes on a 36-core system.
- Statistical validation via repeated execution and Student’s t-test ensures 95% confidence intervals with 2.5% precision for performance measurements.
Experimental results
Research questions
- RQ1Does architecture-specific optimization lead to diminishing returns due to the Red Queen effect in rapidly evolving multicore systems?
- RQ2Can a portable, model-based optimization method outperform both legacy open-source FFT libraries and highly tuned vendor libraries in average performance?
- RQ3To what extent can functional performance models (FPMs) enable adaptive, load-balanced parallelization of 2D-DFT on multicore processors?
- RQ4How do the proposed PFFT-FPM and PFFT-FPM-PAD methods improve performance across diverse problem sizes compared to unoptimized and vendor-optimized FFT implementations?
- RQ5What is the impact of padding (PFFT-FPM-PAD) on load balancing and performance gains in multithreaded 2D-DFT computations?
Key findings
- The average performance of FFTW-3.3.7 improved by 42% when optimized with PFFT-FPM over the unoptimized FFTW-2.1.5, despite FFTW-2.1.5 being faster on average.
- PFFT-FPM achieved an average speedup of 1.9x and maximum speedup of 6.8x over FFTW-3.3.7, and 1.3x average and 2x maximum over Intel MKL FFT.
- PFFT-FPM-PAD achieved an average speedup of 2.0x and maximum speedup of 9.4x over FFTW-3.3.7, and 1.4x average and 5.9x maximum over Intel MKL FFT.
- The performance variation width in FFTW-3.3.7 was substantially greater than in FFTW-2.1.5, indicating higher sensitivity to problem size and workload imbalance.
- Despite Intel MKL FFT achieving a higher peak performance (39,424 MFLOPs) than FFTW-2.1.5 (17,841 MFLOPs), its average performance (9,572 MFLOPs) was still outperformed by the optimized FFTW-2.1.5 in the PFFT-FPM-PAD framework.
- The results confirm that model-based optimization can yield higher average performance than both unoptimized and highly tuned vendor libraries, validating the portability and effectiveness of the proposed approach.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.