用于加速FPGA上托管语言的透明编译器和编译器专业化
Transparent Compiler and Runtime Specializations for Accelerating Managed Languages on FPGAs
摘要:
近年来,异构计算已经成为增加计算机数量的重要途径。通过结合图形处理单元(GPU)和现场可编程门阵列(FPGA)等各种硬件设备,提高性能和能效。这种趋势背后的原理是,应用程序的不同部分可以从主CPU卸载到不同的设备,这些设备可以作为协处理器有效地执行这些部分。FPGA是最广泛使用的协处理器的子集,由于其灵活的硬件和节能特性,通常用于加速特定的工作负载。这些特性使它们在从低功耗嵌入式系统到高端数据中心和云基础设施的广泛计算系统中普遍存在。然而,这些硬件特性是以可编程性为代价的。使用高级程序设计语言(例如,Java、Python等)需要熟悉硬件描述语言(例如,VHDL、Verilog)或最近的异构编程模型(例如,OpenCL,HLS),以利用协处理器?容量并调整其应用程序的性能。目前,上述异构编程模型仅支持从编译语言(如C和C++)编译。因此,异构协处理器到托管程序设计语言(例如Java、Python)的软件生态系统的透明集成不是无缝的。在本文中,我们重新考虑了我们遇到的工程权衡,在透明度和编译开销方面,同时将FPGA集成到高级托管程序设计语言中。我们提出了一种新的方法,使运行时代码专业化技术的无缝和高性能的Java程序在FPGA上执行。所提出的解决方案是原型的Java程序设计语言和TornadoVM的上下文中,一个开源的Java执行异构硬件的编程框架。最后,我们评估了针对FPGA执行的建议解决方案,针对顺序和多线程Java实现,分别展示了高达224倍和19.8倍的性能加速,与在英特尔集成GPU上运行的TornadoVM相比,性能加速高达13.82倍。我们还提供了一个分解分析的建议编译器优化FPGA执行,作为一种手段,项目对应用程序的影响?特色
英文摘要:
In recent years, heterogeneous computing has emerged as the vital way to increase computers? performance and energy efficiency by combining diverse hardware devices, such as Graphics Processing Units (GPUs) and Field Programmable Gate Arrays (FPGAs). The rationale behind this trend is that different parts of an application can be offloaded from the main CPU to diverse devices, which can efficiently execute these parts as co-processors. FPGAs are a subset of the most widely used co-processors, typically used for accelerating specific workloads due to their flexible hardware and energy-efficient characteristics. These characteristics have made them prevalent in a broad spectrum of computing systems ranging from low-power embedded systems to high-end data centers and cloud infrastructures. However, these hardware characteristics come at the cost of programmability. Developers who create their applications using high-level programming languages (e.g., Java, Python, etc.) are required to familiarize with a hardware description language (e.g., VHDL, Verilog) or recently heterogeneous programming models (e.g., OpenCL, HLS) in order to exploit the co-processors? capacity and tune the performance of their applications. Currently, the above-mentioned heterogeneous programming models support exclusively the compilation from compiled languages, such as C and C++. Thus, the transparent integration of heterogeneous co-processors to the software ecosystem of managed programming languages (e.g. Java, Python) is not seamless. In this paper we rethink the engineering trade-offs that we encountered, in terms of transparency and compilation overheads, while integrating FPGAs into high-level managed programming languages. We present a novel approach that enables runtime code specialization techniques for seamless and high-performance execution of Java programs on FPGAs. The proposed solution is prototyped in the context of the Java programming language and TornadoVM; an open-source programming framework for Java execution on heterogeneous hardware. Finally, we evaluate the proposed solution for FPGA execution against both sequential and multi-threaded Java implementations showcasing up to 224x and 19.8x performance speedups, respectively, and up to 13.82x compared to TornadoVM running on an Intel integrated GPU. We also provide a break-down analysis of the proposed compiler optimizations for FPGA execution, as a means to project their impact on the applications? characteristics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。