arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.13954cs.DCcs.PL
收藏

PGAS程序中不规则访存模式的优化

Compiler Optimization for Irregular Memory Access Patterns in PGAS Programs

Thomas B. Rolinger, Christopher D. Krieger, Alan Sussman

摘要:

不规则的内存访问模式给分布式内存系统带来了性能和用户生产力方面的挑战。它们可以导致细粒度的远程通信,并且数据访问模式通常直到运行时才知道。分区全局地址空间(PGAS)编程模型通过向用户提供类似于单个共享地址空间的分布式内存系统视图来解决这些挑战。然而,这种观点经常导致程序员编写导致细粒度远程通信的代码,这可能导致性能低下。先前的工作表明,用Chapel(一种高级PGAS语言)编写的不规则应用程序的性能可以通过手动应用优化来提高。然而,手动应用这种优化会降低Chapel和PGAS模型提供的生产率优势。我们提出了一个检查器执行器为基础的编译器优化的教堂程序,自动执行远程数据复制。虽然其他PGAS语言也有类似的编译器优化,但Chapel中的高级功能(如隐式处理器亲和性)给编译器优化带来了新的挑战。我们评估我们的优化在两个不规则的应用程序的性能。我们的研究结果表明,在具有低延迟互连的Cray XC系统上,总运行时间可以提高52倍,在具有Infiniband互连的标准Linux集群上可以提高364倍,这表明可以在不牺牲用户生产力的情况下实现显着的性能提升。

英文摘要:

Irregular memory access patterns pose performance and user productivity challenges on distributed-memory systems. They can lead to fine-grained remote communication and the data access patterns are often not known until runtime. The Partitioned Global Address Space (PGAS) programming model addresses these challenges by providing users with a view of a distributed-memory system that resembles a single shared address space. However, this view often leads programmers to write code that causes fine-grained remote communication, which can result in poor performance. Prior work has shown that the performance of irregular applications written in Chapel, a high-level PGAS language, can be improved by manually applying optimizations. However, applying such optimizations by hand reduces the productivity advantages provided by Chapel and the PGAS model. We present an inspector-executor based compiler optimization for Chapel programs that automatically performs remote data replication. While there have been similar compiler optimizations implemented for other PGAS languages, high-level features in Chapel such as implicit processor affinity lead to new challenges for compiler optimization. We evaluate the performance of our optimization across two irregular applications. Our results show that the total runtime can be improved by as much as 52x on a Cray XC system with a low-latency interconnect and 364x on a standard Linux cluster with an Infiniband interconnect, demonstrating that significant performance gains can be achieved without sacrificing user productivity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑