跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

物理学 > 计算物理

arXiv:1710.03462 (physics)
[提交于 2017年10月10日]

标题:SoAx: A generic C++ Structure of Arrays for handling Particles in HPC Codes

作者:Holger Homann, Francois Laenen
查看论文《SoAx: A generic C++ Structure of Arrays for handling Particles in HPC Codes》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The numerical study of physical problems often require integrating the dynamics of a large number of particles evolving according to a given set of equations. Particles are characterized by the information they are carrying such as an identity, a position other. There are generally speaking two different possibilities for handling particles in high performance computing (HPC) codes. The concept of an Array of Structures (AoS) is in the spirit of the object-oriented programming (OOP) paradigm in that the particle information is implemented as a structure. Here, an object (realization of the structure) represents one particle and a set of many particles is stored in an array. In contrast, using the concept of a Structure of Arrays (SoA), a single structure holds several arrays each representing one property (such as the identity) of the whole set of particles. The AoS approach is often implemented in HPC codes due to its handiness and flexibility. For a class of problems, however, it is know that the performance of SoA is much better than that of AoS. We confirm this observation for our particle problem. Using a benchmark we show that on modern Intel Xeon processors the SoA implementation is typically several times faster than the AoS one. On Intel's MIC co-processors the performance gap even attains a factor of ten. The same is true for GPU computing, using both computational and multi-purpose GPUs. Combining performance and handiness, we present the library SoAx that has optimal performance (on CPUs, MICs, and GPUs) while providing the same handiness as AoS. For this, SoAx uses modern C++ design techniques such template meta programming that allows to automatically generate code for user defined heterogeneous data structures.
主题: 计算物理 (physics.comp-ph); 数学软件 (cs.MS)
引用方式: arXiv:1710.03462 [physics.comp-ph]
  (或者 arXiv:1710.03462v1 [physics.comp-ph] 对于此版本)
  https://doi.org/10.48550/arXiv.1710.03462
相关 DOI: https://doi.org/10.1016/j.cpc.2017.11.015

提交历史

来自:Holger Homann
[v1] 2017年10月10日 星期二 09:13:54 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

physics.comp-ph
< 上一篇   |   下一篇 >
最新 | 近期 | 2017-10
切换浏览方式为:
physics
cs.MS

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站