在共享内存、多核 CPU 上并行化粒子质量转移算法

IF 4 2区 环境科学与生态学 Q1 WATER RESOURCES
David A. Benson , Ivan Pribec , Nicholas B. Engdahl , Stephen Pankavich , Lucas Schauer
{"title":"在共享内存、多核 CPU 上并行化粒子质量转移算法","authors":"David A. Benson ,&nbsp;Ivan Pribec ,&nbsp;Nicholas B. Engdahl ,&nbsp;Stephen Pankavich ,&nbsp;Lucas Schauer","doi":"10.1016/j.advwatres.2024.104818","DOIUrl":null,"url":null,"abstract":"<div><p>Simulating the transfer of mass between particles is not straightforwardly parallelized because it involves the calculation of the influence of many particles on each other. Engdahl et al. (2019) intuited that the number of matrix operations used for mass transfer grows quadratically with the number of particles, so that dividing the domain geometrically into sub-domains will give speed and memory advantages, even on a single processing thread. Those authors also showed the speed scalability of several one-dimensional examples on multiple cores. Here, we extend those results for more general cases, both in terms of spatial dimensions and algorithmic implementation. We show that there is an optimal subdivision scheme for naive, full-matrix calculations on a multi-processor, or multi-threading shared-memory machine. A similar sparse-matrix implementation that also uses row-and-column-sum normalization often greatly reduces the memory requirements. We also introduce a completely new mass transfer algorithm that uses a non-geometric domain decomposition and only matrix row-sum normalization. This allows the mass-transfer “matrix” to be constructed and solved one row at a time in parallel, so it is faster and vastly more memory efficient than previous methods, but requires more care for suitable accuracy.</p></div>","PeriodicalId":7614,"journal":{"name":"Advances in Water Resources","volume":"193 ","pages":"Article 104818"},"PeriodicalIF":4.0000,"publicationDate":"2024-09-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S0309170824002057/pdfft?md5=7ca8ec3f0da81585d7125a9740e31db7&pid=1-s2.0-S0309170824002057-main.pdf","citationCount":"0","resultStr":"{\"title\":\"Parallelization of particle-mass-transfer algorithms on shared-memory, multi-core CPUs\",\"authors\":\"David A. Benson ,&nbsp;Ivan Pribec ,&nbsp;Nicholas B. Engdahl ,&nbsp;Stephen Pankavich ,&nbsp;Lucas Schauer\",\"doi\":\"10.1016/j.advwatres.2024.104818\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Simulating the transfer of mass between particles is not straightforwardly parallelized because it involves the calculation of the influence of many particles on each other. Engdahl et al. (2019) intuited that the number of matrix operations used for mass transfer grows quadratically with the number of particles, so that dividing the domain geometrically into sub-domains will give speed and memory advantages, even on a single processing thread. Those authors also showed the speed scalability of several one-dimensional examples on multiple cores. Here, we extend those results for more general cases, both in terms of spatial dimensions and algorithmic implementation. We show that there is an optimal subdivision scheme for naive, full-matrix calculations on a multi-processor, or multi-threading shared-memory machine. A similar sparse-matrix implementation that also uses row-and-column-sum normalization often greatly reduces the memory requirements. We also introduce a completely new mass transfer algorithm that uses a non-geometric domain decomposition and only matrix row-sum normalization. This allows the mass-transfer “matrix” to be constructed and solved one row at a time in parallel, so it is faster and vastly more memory efficient than previous methods, but requires more care for suitable accuracy.</p></div>\",\"PeriodicalId\":7614,\"journal\":{\"name\":\"Advances in Water Resources\",\"volume\":\"193 \",\"pages\":\"Article 104818\"},\"PeriodicalIF\":4.0000,\"publicationDate\":\"2024-09-11\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.sciencedirect.com/science/article/pii/S0309170824002057/pdfft?md5=7ca8ec3f0da81585d7125a9740e31db7&pid=1-s2.0-S0309170824002057-main.pdf\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Advances in Water Resources\",\"FirstCategoryId\":\"93\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0309170824002057\",\"RegionNum\":2,\"RegionCategory\":\"环境科学与生态学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"WATER RESOURCES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Advances in Water Resources","FirstCategoryId":"93","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0309170824002057","RegionNum":2,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"WATER RESOURCES","Score":null,"Total":0}
引用次数: 0

摘要

模拟粒子间的质量传递并不能直接实现并行化,因为这涉及到许多粒子相互影响的计算。Engdahl 等人(2019 年)直觉地认为,用于质量转移的矩阵运算次数与粒子数量成二次方增长,因此,即使在单个处理线程上,按几何形状将域划分为子域也会带来速度和内存优势。这些作者还展示了几个一维示例在多核上的速度可扩展性。在这里,我们将这些结果扩展到更一般的情况,包括空间维度和算法实现。我们证明,在多处理器或多线程共享内存机器上进行天真全矩阵计算时,存在一种最佳细分方案。同时使用行列和归一化的类似稀疏矩阵实现方法往往能大大降低内存需求。我们还引入了一种全新的质量转移算法,该算法使用非几何域分解和矩阵行和归一化。这使得质量转移 "矩阵 "的构建和求解可以一行一行地并行进行,因此它比以前的方法更快,内存效率也大大提高,但需要更加小心,才能获得合适的精度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Parallelization of particle-mass-transfer algorithms on shared-memory, multi-core CPUs

Simulating the transfer of mass between particles is not straightforwardly parallelized because it involves the calculation of the influence of many particles on each other. Engdahl et al. (2019) intuited that the number of matrix operations used for mass transfer grows quadratically with the number of particles, so that dividing the domain geometrically into sub-domains will give speed and memory advantages, even on a single processing thread. Those authors also showed the speed scalability of several one-dimensional examples on multiple cores. Here, we extend those results for more general cases, both in terms of spatial dimensions and algorithmic implementation. We show that there is an optimal subdivision scheme for naive, full-matrix calculations on a multi-processor, or multi-threading shared-memory machine. A similar sparse-matrix implementation that also uses row-and-column-sum normalization often greatly reduces the memory requirements. We also introduce a completely new mass transfer algorithm that uses a non-geometric domain decomposition and only matrix row-sum normalization. This allows the mass-transfer “matrix” to be constructed and solved one row at a time in parallel, so it is faster and vastly more memory efficient than previous methods, but requires more care for suitable accuracy.

求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Advances in Water Resources
Advances in Water Resources 环境科学-水资源
CiteScore
9.40
自引率
6.40%
发文量
171
审稿时长
36 days
期刊介绍: Advances in Water Resources provides a forum for the presentation of fundamental scientific advances in the understanding of water resources systems. The scope of Advances in Water Resources includes any combination of theoretical, computational, and experimental approaches used to advance fundamental understanding of surface or subsurface water resources systems or the interaction of these systems with the atmosphere, geosphere, biosphere, and human societies. Manuscripts involving case studies that do not attempt to reach broader conclusions, research on engineering design, applied hydraulics, or water quality and treatment, as well as applications of existing knowledge that do not advance fundamental understanding of hydrological processes, are not appropriate for Advances in Water Resources. Examples of appropriate topical areas that will be considered include the following: • Surface and subsurface hydrology • Hydrometeorology • Environmental fluid dynamics • Ecohydrology and ecohydrodynamics • Multiphase transport phenomena in porous media • Fluid flow and species transport and reaction processes
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信