arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.01117cs.DC
收藏

Chapel、Charm++、C++、HPX、Go、Julia、Python、Rust、Swift 和 Java 中并行一维热方程求解器的基准测试

Benchmarking the Parallel 1D Heat Equation Solver in Chapel, Charm++, C++, HPX, Go, Julia, Python, Rust, Swift, and Java

Patrick Diehl, Steven R. Brandt, Max Morris, Nikunj Gupta, Hartmut Kaiser

AI总结:

本文在 Intel、AMD 和 ARM64FX 架构上基准测试十种语言实现的共享内存并行一维热扩散求解器,发现 C++、Rust、Chapel、Charm++ 和 HPX 性能领先。

摘要:

许多模拟黑洞、海岸波浪、气候和天气等现象的科学高性能代码,都依赖块结构网格,并使用有限差分方法迭代求解相应的微分方程组。在本文中,我们使用多种编程系统和语言,研究了此类极其简单模拟的实现。我们聚焦于一种共享内存并行算法,该算法利用异步队列进行鬼区交换,以模拟一维热扩散。我们讨论了各种平台的优势,并在 Intel、AMD 和 ARM64FX 等不同计算架构上探究了该模型代码的性能。结果表明,在所比较的一组语言中,Python 最慢;Java、Go、Swift 和 Julia 处于中等性能水平;性能更高的平台是 C++、Rust、Chapel、Charm++ 和 HPX。

英文摘要:

Many scientific high performance codes that simulate e.g. black holes, coastal waves, climate and weather, etc. rely on block-structured meshes and use finite differencing methods to iteratively solve the appropriate systems of differential equations. In this paper we investigate implementations of an extremely simple simulation of this type using various programming systems and languages. We focus on a shared memory, parallelized algorithm that simulates a 1D heat diffusion using asynchronous queues for the ghost zone exchange. We discuss the advantages of the various platforms and explore the performance of this model code on different computing architectures: Intel, AMD, and ARM64FX. As a result, Python was the slowest of the set we compared. Java, Go, Swift, and Julia were the intermediate performers. The higher performing platforms were C++, Rust, Chapel, Charm++, and HPX.

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

↑