GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pc2/fft3d-fpga: FFTFPGA is an OpenCL based library for Fast Fourier Transformations for FPGAs. This repository provides OpenCL host code in the form of FFTW like APIs as well as OpenCL kernel designs that can be synthesized to bitstreams.

BranchesTags
Open more actions menu

Latest commit

 

History

142 Commits
142 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE
 
 
api
api
 
 
cmake
cmake
 
 
docs
docs
 
 
examples
examples
 
 
kernels
kernels
 
 
scripts/power_measure
scripts/power_measure
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
CHANGELOG
CHANGELOG
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

FFTFPGA

GitHub license GitHub license

FFTFPGA is an OpenCL based library for Fast Fourier Transformations for FPGAs. This repository provides OpenCL host code in the form of FFTW like APIs, which can be used to offload existing FFT routines to FPGAs with minimal effort. It also provides OpenCL kernels that can be synthesized to bitstreams, which the APIs can utilize.

Features

  • 1D, 2D and 3D Transforms
  • Input sizes of powers of 2
  • Single Precision (32 bit floating point)
  • C2C: Complex input to complex output
  • Out-of-place transforms
  • Batched 3D transforms
  • OpenCL Shared Virtual Memory (SVM) extensions for data transfers

Supported FPGAs

This library has been tested using the following FPGAs present in the Noctua cluster of the Paderborn Center for Parallel Computing (PC2) at Paderborn University:

  • Bittware 520N card with Intel Stratix 10 GX 2800 FPGA
  • Intel FPGA PAC D5005 card with Intel Stratix 10 SX 2800 FPGA

Who is using FFTFPGA?

  • CP2K: the quantum chemistry software package has an interface to offload 3d FFTs to Intel FPGAs that uses the OpenCL kernel designs of FFTFPGA.

Quick Setup

Firstly, dependencies for building the system

  • CMake >= 3.10
  • C++ compiler with C++11 support (GCC 4.9.0+)
  • Intel FPGA SDK for OpenCL
  • FFTW3

Once you have this covered, execute the following:

mkdir build && cd build  
cmake ..
make

You have built the API i.e., the OpenCL host code that invokes different transformations correctly are packed into a static library. This must be linked to an application.

You have also compiled a sample application that helps invoke these APIs.

Strictly said, you have done the following:

  • fftfpga static library, linked such as -lfftfpga
  • fftfpga/fftfpga.h header file
  • fft - a sample application which links and includes the above two.

Now onto synthesizing the OpenCL FFT kernels. These can be synthesized to run on software emulation or on hardware as bitstreams.

  • Emulation
make <kernel_name>_emu
make fft3d_ddr_emulate
  • Hardware Bitstream
make <kernel_name>_syn
make fft3d_ddr_syn

Putting them all together, in order to execute the required FFT, set the path to the synthesized bitstream along with other correct configurations as command line parameters to the sample application generated.

./fft --num=64 --dim=3 --path=fft3d_ddr_128.aocx

Tip: for emulation, use the --emulate command line parameter.

List of Kernels

Kernel Name Description
1D fft1d OpenCL design provided by Intel
2D fft2d_ddr DDR memory is used for 2D Transpose
fft2d_bram BRAM is used for 2D Transpose
3D fft3d_ddr DDR memory is used for 3D Transpose
fft3d_bram BRAM is used for 3D Transpose

These kernels can be synthesized by appending _emulate or _syn to its suffix such as fft1d_emulate.

Please checkout the User Guide for more information such as configuration options etc.

Publications

FFTFPGA has been cited in the following publications:

  1. Evaluating the Design Space for Offloading 3D FFT Calculations to an FPGA for High-Performance Computing : https://doi.org/10.1007/978-3-030-79025-7_21

  2. CP2K: An electronic structure and molecular dynamics software package - Quickstep: Efficient and accurate electronic structure calculations: https://doi.org/10.1063/5.0007045

  3. Efficient Ab-Initio Molecular Dynamic Simulations by Offloading Fast Fourier Transformations to FPGAs : https://doi.org/10.1109/FPL50879.2020.00065

Related Repositories

  • ConvFPGA - an OpenCL based library for FFT-based convolution on FPGAs
  • FFTFPGA-eval - archives reports and measurements from FFTFPGA and ConvFPGA

Contact

  • Arjun Ramaswami
  • Tobias Kenter
  • Thomas D. Kühne
  • Christian Plessl

Acknowledgements

  • Marius Meyer for code reviews, testing and discussions.

About

FFTFPGA is an OpenCL based library for Fast Fourier Transformations for FPGAs. This repository provides OpenCL host code in the form of FFTW like APIs as well as OpenCL kernel designs that can be synthesized to bitstreams.

Topics

bitstreamsfast-fourier-transformationsfpgasopencl-kernel-designs

Resources

Readme
MIT license
Activity
Custom properties

Stars

17 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.