Year: 2026
Type: dissertation
Abstract: In heterogeneous computing, a common approach toward improving the performance of applications, in terms of their execution time, is to accelerate critical code regions using FPGA accelerators.This approach often consists of two steps: the first is Hardware/Software partitioning (i.e., the identification of code regions that should be offloaded to an FPGA), and the second is the series of code optimizations applied over the regions that go to the FPGA.Both tasks have been studied in isolation, but there is still a lack of understanding as to how the decisions made in one task can improve the decisions made in the other, and vice versa, so that the whole achieves better performance than the sum of its parts.Our main objective is, therefore, to research a fully automated holistic process of Hardware/Software partitioning and FPGA code optimization where both components complement each other.Through the use of a source-to-source compiler, we build a task-based intermediate representation for large C-language input applications.Then, a greedy algorithm creates clusters of tasks that are suitable for hardware acceleration, taking into consideration an expansion heuristic (e.g., capturing ≈ 80% of the program's CPU execution time) and whether a task should be added to the cluster.To enable a better and more efficient clustering process, we propose source-to-source transformations to tackle non-synthesizable C features, e.g., dynamic memory allocations, system calls, and indirect pointers.Furthermore, we also optimize the memory footprint of an offloaded region using holistic information obtained by analyzing the lifetimes of the data beyond the cluster.Evaluation is done using large applications (i.e., with multiple functions with complex control flow and non-synthesizable C features) from CortexSuite, plus an edge detection application and a llama2 inference implementation.By creating clusters representing ≈ 80% of the execution time, and by applying all transformations, we achieve region speedups of up to 74.82× when compared to their CPU counterparts, and CPU-FPGA application speedups of up to 8.07×.i First and foremost, I thank my advisors, professors João Cardoso and João Bispo, for the unyielding support afforded to me over these last four years.I deeply appreciate everything you have done for me, from your expertise to your mentorship, from your constant feedback to your guidance in keeping me focused, from all the odd hours we faced in rallying towards impending deadlines to the more earnest moments afforded to us from time to time.It has been, once again, an honor and a privilege to work with both of you.I also extend a particular thank you to Fundação para a Ciência e Tecnologia for their assistance in providing me with the PhD grant 2021.07324.BD, making this whole endeavor possible, and to CMU Portugal
Author: Tiago Lascasas dos Santos
Institution: Universidade do Porto
Language: English
Subfield: Hardware and Architecture
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7214411974
