NASA Logo

NTRS

NTRS - NASA Technical Reports Server

Back to Results
Optimal Padding for the Two-Dimensional Fast Fourier TransformOne-dimensional Fast Fourier Transform (FFT) operations work fastest on grids whose size is divisible by a power of two. Because of this, padding grids (that are not already sized to a power of two) so that their size is the next highest power of two can speed up operations. While this works well for one-dimensional grids, it does not work well for two-dimensional grids. For a two-dimensional grid, there are certain pad sizes that work better than others. Therefore, the need exists to generalize a strategy for determining optimal pad sizes. There are three steps in the FFT algorithm. The first is to perform a one-dimensional transform on each row in the grid. The second step is to transpose the resulting matrix. The third step is to perform a one-dimensional transform on each row in the resulting grid. Steps one and three both benefit from padding the row to the next highest power of two, but the second step needs a novel approach. An algorithm was developed that struck a balance between optimizing the grid pad size with prime factors that are small (which are optimal for one-dimensional operations), and with prime factors that are large (which are optimal for two-dimensional operations). This algorithm optimizes based on average run times, and is not fine-tuned for any specific application. It increases the amount of times that processor-requested data is found in the set-associative processor cache. Cache retrievals are 4-10 times faster than conventional memory retrievals. The tested implementation of the algorithm resulted in faster execution times on all platforms tested, but with varying sized grids. This is because various computer architectures process commands differently. The test grid was 512 512. Using a 540 540 grid on a Pentium V processor, the code ran 30 percent faster. On a PowerPC, a 256x256 grid worked best. A Core2Duo computer preferred either a 1040x1040 (15 percent faster) or a 1008x1008 (30 percent faster) grid. There are many industries that can benefit from this algorithm, including optics, image-processing, signal-processing, and engineering applications.
Document ID
20110011947
Acquisition Source
Goddard Space Flight Center
Document Type
Other - NASA Tech Brief
Authors
Dean, Bruce H.
(NASA Goddard Space Flight Center Greenbelt, MD, United States)
Aronstein, David L.
(NASA Goddard Space Flight Center Greenbelt, MD, United States)
Smith, Jeffrey S.
(NASA Goddard Space Flight Center Greenbelt, MD, United States)
Date Acquired
August 25, 2013
Publication Date
April 1, 2011
Publication Information
Publication: NASA Tech Briefs, April 2011
Subject Category
Technology Utilization And Surface Transportation
Report/Patent Number
GSC-15678-1
Distribution Limits
Public
Copyright
Public Use Permitted.
No Preview Available