arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.10508physics.comp-phcond-mat.mtrl-sci
收藏

用于相场与反应扩散模拟的并行GPU加速代码

Parallel and GPU accelerated code for phase-field and reaction-diffusion simulations

Western University(韦仕敦大学);ELLIS Institute Finland(芬兰ELLIS研究所);University of Eastern Finland(芬兰东部大学)

Steven A. Silber, Mikko Karttunen

AI总结:

本文发布相场与反应扩散模拟框架SymPhas 2.0,新增多项符号计算功能,支持MPI CPU并行与CUDA GPU加速,大系统模拟最高获千倍加速,适配GPU高性能计算平台。

摘要:

我们推出SymPhas 2.0,它是面向相场与反应扩散模型的编译期符号代数模拟框架SymPhas的重大更新版本。本次版本进行了大量功能扩展与增强,支持通过编译期求值的泛函微分,直接从自由能泛函定义相场模型;同时新增方向导数、符号求和、张量值表达式,以及编译期推导的任意阶、任意精度有限差分模板。此外,代码已通过MPI实现CPU并行,并基于CUDA(统一计算设备架构)新增GPU计算支持:针对GPU计算场景,符号表达式会被编译为优化的CUDA核函数,支持大规模模拟完全在GPU上运行。针对双精度下的二维32768²、三维1024³规模大系统,与单节点多线程CPU运行的初代SymPhas相比,该版本获得了最高约1000倍的加速。上述进展使SymPhas 2.0成为灵活可扩展的框架,可在基于GPU的高性能计算平台上高效实现相场与反应扩散模型。

英文摘要:

We present SymPhas 2.0, a major update of the compile-time symbolic algebra simulation framework SymPhas for phase-field and reaction-diffusion models. This release introduces significant expansions and enhancements that enable the definition of a phase-field model directly from the free-energy functional via compile-time evaluated functional differentiation. It also introduces directional derivatives, symbolic summation, tensor-valued expressions, and compile-time derived finite difference stencils of arbitrary order and accuracy. Furthermore, the code has been parallelized for CPUs with MPI, and GPU computing has been added using CUDA (Compute Unified Device Architecture). For the latter, symbolic expressions are compiled into optimized CUDA kernels, allowing large-scale simulations to execute entirely on the GPU. For large systems ($32,768^2$ in 2D and $1,024^3$ in 3D with double precision), speedups up to $\sim \!\!1,000 \times$ were obtained compared to the first version of SymPhas using multi-threaded CPU execution on a single system. These developments establish SymPhas 2.0 as a flexible and scalable framework for efficient implementation of phase-field and reaction-diffusion models on GPU-based high-performance computing platforms.

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

↑