arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.01017physics.comp-phcs.PFphysics.geo-ph
收藏

现代化Titan2D,并行AMR地球物理流代码,以支持多种流变学和可扩展性

Modernizing Titan2D, a Parallel AMR Geophysical Flow Code to Support Multiple Rheologies and Extendability

Nikolay A. Simakov, Renette L. Jones-Ivey, Ali Akhavan-Safaei, Hossein Aghakhani, Matthew D. Jones, Abani K. Patra

摘要:

在这项工作中,我们报告的策略和结果,我们的初始方法的现代化Titan 2D代码。Titan 2D是一个地球物理质量流模拟代码,设计用于在真实地形模型上模拟火山流,碎片雪崩和山体滑坡。它解决了一个潜在的双曲型偏微分方程组使用并行自适应网格Goddom格式。以下工作是在代码重构和现代化过程中完成的。为了方便用户输入,开发了两级python接口。这样的设计允许在C++和Python底层进行大的更改,同时保持向最终用户公开的稳定的高级接口。实现不同材料模型的多个分叉被合并在一起。数据存储布局从结构的链表更改为数组表示的结构,以更好地访问内存,并为更好地利用向量化指令的进一步工作做准备。现有的MPI并行化通过OpenMP并行化得到增强。通过从用于溢出条目的链表切换到允许执行二分搜索算法的动态数组,用于存储网格元素和节点引用的哈希表的性能得到了改善。新数据布局的引入可以通过直接使用存储类中的索引来替代哈希表查找,从而减少哈希表查找的数量。这些修改导致串行执行的性能提高8-9倍。

英文摘要:

In this work, we report on strategies and results of our initial approach for modernization of Titan2D code. Titan2D is a geophysical mass flow simulation code designed for modeling of volcanic flows, debris avalanches and landslides over a realistic terrain model. It solves an underlying hyperbolic system of partial differential equations using parallel adaptive mesh Godunov scheme. The following work was done during code refactoring and modernization. To facilitate user input two level python interface was developed. Such design permits large changes in C++ and Python low-level while maintaining stable high-level interface exposed to the end user. Multiple diverged forks implementing different material models were merged back together. Data storage layout was changed from a linked list of structures to a structure of arrays representation for better memory access and in preparation for further work on better utilization of vectorized instruction. Existing MPI parallelization was augmented with OpenMP parallelization. The performance of a hash table used to store mesh elements and nodes references was improved by switching from a linked list for overflow entries to dynamic arrays allowing the implementation of the binary search algorithm. The introduction of the new data layout made possible to reduce the number of hash table look-ups by replacing them with direct use of indexes from the storage class. The modifications lead to 8-9 times performance improvement for serial execution.

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

↑