Skip to main navigation Skip to search Skip to main content

SQL2FPGA: Automatic Acceleration of SQL Query Processing on Modern CPU-FPGA Platforms

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Today's big data query engines are constantly under pressure to keep up with the rapidly increasing demand for faster processing of more complex workloads. In the past few years, FPGA-based database acceleration efforts have demon-strated promising performance improvement with good energy efficiency. However, few studies target the programming and design automation support to leverage the FPGA accelerator benefits in query processing. Most of them rely on the SQL query plan generated by CPU query engines and manually map the query plan onto the FPGA accelerators, which is tedious and error-prone. Moreover, such CPU-oriented query plans do not consider the utilization of FPGA accelerators and could lose more optimization opportunities. In this paper, we present SQL2FPGA, an FPGA accelerator-aware compiler to automatically map SQL queries onto the heterogeneous CPU-FPGA platforms. Our SQL2FPGA front-end takes an optimized logical plan of a SQL query from a database query engine and transforms it into a unified operator-level intermediate representation. To generate an optimized FPGA-aware physical plan, SQL2FPGA implements a set of compiler optimization passes to 1) improve operator acceleration coverage by the FPGA, 2) eliminate redundant computation during physical execution, and 3) minimize data transfer overhead between operators on the CPU and FPGA. Finally, SQL2FPGA generates the associated query acceleration code for heterogeneous CPUFPGA system deployment. Compared to the widely used Apache Spark SQL framework running on the CPU, SQL2FPGA - using two AMD/Xilinx HBM-based Alveo U280 FPGA boards - achieves an average performance speedup of 10.1x and 13.9x across all 22 TPC-H benchmark queries in a scale factor of 1GB (SF1) and 30GB (SF30), respectively.

Original languageEnglish (US)
Title of host publicationProceedings - 31st IEEE International Symposium on Field-Programmable Custom Computing Machines, FCCM 2023
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages184-194
Number of pages11
ISBN (Electronic)9798350312058
DOIs
StatePublished - 2023
Externally publishedYes
Event31st IEEE International Symposium on Field-Programmable Custom Computing Machines, FCCM 2023 - Marina Del Rey, United States
Duration: May 8 2023May 11 2023

Publication series

NameProceedings - 31st IEEE International Symposium on Field-Programmable Custom Computing Machines, FCCM 2023

Conference

Conference31st IEEE International Symposium on Field-Programmable Custom Computing Machines, FCCM 2023
Country/TerritoryUnited States
CityMarina Del Rey
Period5/8/235/11/23

Bibliographical note

Publisher Copyright:
© 2023 IEEE.

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 7 - Affordable and Clean Energy
    SDG 7 Affordable and Clean Energy

Keywords

  • FPGA acceleration
  • heterogenous CPU-FPGA platform
  • high-level synthesis
  • HLS overlay accelerator
  • SQL query compilation

Fingerprint

Dive into the research topics of 'SQL2FPGA: Automatic Acceleration of SQL Query Processing on Modern CPU-FPGA Platforms'. Together they form a unique fingerprint.

Cite this