NPB-Rust:Rust 语言实现的 NAS 并行基准测试
NPB-Rust: NAS Parallel Benchmarks in Rust
AI总结:
本研究实现了 Rust 版本的 NAS 并行基准测试 NPB-Rust,分析了 Rust 语言特性的表达能力、性能及并行化策略,实验对比了其与 Fortran、C++ 版本 NPB 的性能差异。
摘要:
并行编程通常要求开发者处理复杂的计算任务,这类任务在开发周期中容易产生大量错误。Rust 是一种高性能的底层语言,其编译器可提供内存安全保证,因此成为高性能计算(HPC)应用开发者的理想选择。我们发现,Rust 生态系统可受益于更全面的科学基准测试套件,以实现标准化对比与研究。NAS 并行基准测试(NPB)是一套用于评估各类硬件性能的标准化套件,常被用于对比不同的并行计算框架。因此,我们的贡献包括:实现 Rust 版本的 NPB、分析该语言特性的表达能力与性能,以及并行化策略。我们将本次实现与成熟的 NPB 串行、并行版本进行了对比。实验结果表明,Rust 串行版本比 Fortran 慢 1.23%,比 C++ 快 5.59%;而搭配 Rayon 的 Rust 并行版本,性能同时低于搭配 OpenMP 的 Fortran 和 C++ 版本。
英文摘要:
Parallel programming often requires developers to handle complex computational tasks that can yield many errors in its development cycle. Rust is a performant low-level language that promises memory safety guarantees with its compiler, making it an attractive option for HPC application developers. We identified that the Rust ecosystem could benefit from more comprehensive scientific benchmark suites for standardizing comparisons and research. The NAS Parallel Benchmarks (NPB) is a standardized suite for evaluating various hardware aspects and is often used to compare different frameworks for parallelism. Therefore, our contributions are a Rust version of NPB, an analysis of the expressiveness and performance of the language features, and parallelization strategies. We compare our implementation with consolidated sequential and parallel versions of NPB. Experimental results show that Rust's sequential version is 1.23\% slower than Fortran and 5.59\% faster than C++, while Rust with Rayon was slower than both Fortran and C++ with OpenMP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。