PGAS语言中地址映射的硬件支持; UPC实例研究
Hardware Support for Address Mapping in PGAS Languages; a UPC Case Study
摘要:
分区全局地址空间(PGAS)编程模型在位置感知但显式的消息传递模型和易于使用但与位置无关的共享内存模型之间取得了平衡。然而,PGAS富内存模型以性能为代价,这可能会阻碍其可伸缩性和性能的潜力。要控制此开销并实现全部性能,编译器优化可能还不够,通常需要添加手动优化。然而,这会严重限制生产率优势。这种优化通常以减少共享数据结构的地址转换开销为目标。本文提出了对PGAS的硬件架构支持,使处理器能够有效地处理共享地址。这消除了手动调优的需要,同时保持了PGAS语言的性能和生产力。我们建议利用这种硬件支持编译器引入新的指令,有效地访问和遍历PGAS内存空间。通过扩展Berkeley统一并行C(UPC)编译器,实现了一个原型编译器.它允许未经修改的代码在没有用户干预的情况下使用新指令,从而创建一个真正的高效编程环境。实现了两种实现方式:第一种是使用完整的系统模拟器Gem 5,它允许评估的性能增益。第二个是在FPGA上使用软核处理器Leon 3来实现的,以验证可实现性并参数化新硬件及其指令的成本。新的指令显示了在UPC中实现的NAS并行基准测试的良好结果。对于未修改和未优化的代码,最高可达5.5倍的加速比。使用这种硬件的非优化代码性能也超过了手动优化代码的性能高达10%。
英文摘要:
The Partitioned Global Address Space (PGAS) programming model strikes a balance between the locality-aware, but explicit, message-passing model and the easy-to-use, but locality-agnostic, shared memory model. However, the PGAS rich memory model comes at a performance cost which can hinder its potential for scalability and performance. To contain this overhead and achieve full performance, compiler optimizations may not be sufficient and manual optimizations are typically added. This, however, can severely limit the productivity advantage. Such optimizations are usually targeted at reducing address translation overheads for shared data structures. This paper proposes a hardware architectural support for PGAS, which allows the processor to efficiently handle shared addresses. This eliminates the need for such hand-tuning, while maintaining the performance and productivity of PGAS languages. We propose to avail this hardware support to compilers by introducing new instructions to efficiently access and traverse the PGAS memory space. A prototype compiler is realized by extending the Berkeley Unified Parallel C (UPC) compiler. It allows unmodified code to use the new instructions without the user intervention, thereby creating a real productive programming environment. Two implementations are realized: the first is implemented using the full system simulator Gem5, which allows the evaluation of the performance gain. The second is implemented using a softcore processor Leon3 on an FPGA to verify the implementability and to parameterize the cost of the new hardware and its instructions. The new instructions show promising results for the NAS Parallel Benchmarks implemented in UPC. A speedup of up to 5.5x is demonstrated for unmodified and unoptimized codes. Unoptimized code performance using this hardware was shown to also surpass the performance of manually optimized code by up to 10%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。