arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1307.6638cs.MScs.DCcs.SE
收藏

在Epetra和其他Trilinos软件包中支持64位全局索引-使用的技术和经验教训

Supporting 64-bit global indices in Epetra and other Trilinos packages -- Techniques used and lessons learned

Chetan Jhurani, Travis M. Austin, Michael A. Heroux, James M. Willenbring

摘要:

Trilinos项目致力于在面向对象的框架内促进数学软件库的设计、开发、集成和持续支持。它适用于大规模、复杂的多物理场工程和科学应用。Epetra是它的基本包之一。它提供串行和并行线性代数功能。在2012年发布的Trilinos 11.0版本之前,Epetra使用C++ int数据类型来存储自由度(DOF)的全局和局部索引。由于int通常是32位的,这限制了最大的问题大小小于大约20亿DOF。即使分布式内存机器可以处理更大的问题,情况也是如此。我们为全局索引添加了对C++ long long数据类型的可选支持,该数据类型至少为64位宽。为了节省内存,保持内存限制操作的速度,并减少对代码的进一步更改,本地索引仍然是32位的。我们记录了实现此功能所需的更改以及如何使用新功能。我们还报告了从各种角度修改成熟和流行的软件包的经验教训-设计目标,向后兼容性,工程决策,C++语言功能,对现有用户和其他软件包的影响,以及构建集成。

英文摘要:

The Trilinos Project is an effort to facilitate the design, development, integration and ongoing support of mathematical software libraries within an object-oriented framework. It is intended for large-scale, complex multiphysics engineering and scientific applications. Epetra is one of its basic packages. It provides serial and parallel linear algebra capabilities. Before Trilinos version 11.0, released in 2012, Epetra used the C++ int data-type for storing global and local indices for degrees of freedom (DOFs). Since int is typically 32-bit, this limited the largest problem size to be smaller than approximately two billion DOFs. This was true even if a distributed memory machine could handle larger problems. We have added optional support for C++ long long data-type, which is at least 64-bit wide, for global indices. To save memory, maintain the speed of memory-bound operations, and reduce further changes to the code, the local indices are still 32-bit. We document the changes required to achieve this feature and how the new functionality can be used. We also report on the lessons learned in modifying a mature and popular package from various perspectives -- design goals, backward compatibility, engineering decisions, C++ language features, effects on existing users and other packages, and build integration.

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

↑