Parallelization of particle-mass-transfer algorithms on shared-memory, multi-core CPUs

IF 4 2区 环境科学与生态学 Q1 WATER RESOURCES Advances in Water Resources Pub Date : 2024-09-11 DOI:10.1016/j.advwatres.2024.104818
David A. Benson , Ivan Pribec , Nicholas B. Engdahl , Stephen Pankavich , Lucas Schauer
{"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}
引用次数: 0

Abstract

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.

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
在共享内存、多核 CPU 上并行化粒子质量转移算法
模拟粒子间的质量传递并不能直接实现并行化,因为这涉及到许多粒子相互影响的计算。Engdahl 等人(2019 年)直觉地认为,用于质量转移的矩阵运算次数与粒子数量成二次方增长,因此,即使在单个处理线程上,按几何形状将域划分为子域也会带来速度和内存优势。这些作者还展示了几个一维示例在多核上的速度可扩展性。在这里,我们将这些结果扩展到更一般的情况,包括空间维度和算法实现。我们证明,在多处理器或多线程共享内存机器上进行天真全矩阵计算时,存在一种最佳细分方案。同时使用行列和归一化的类似稀疏矩阵实现方法往往能大大降低内存需求。我们还引入了一种全新的质量转移算法,该算法使用非几何域分解和矩阵行和归一化。这使得质量转移 "矩阵 "的构建和求解可以一行一行地并行进行,因此它比以前的方法更快,内存效率也大大提高,但需要更加小心,才能获得合适的精度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
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
期刊最新文献
Study on the effects of non-uniformity of microbial growth on permeability changes in porous media On transient qanat discharge in an unconfined aquifer underlain by a fractured aquifer An extension of the box method discrete fracture model (Box-DFM) to include low-permeable barriers with minimal additional degrees of freedom In search of non-stationary dependence between estuarine river discharge and storm surge based on large-scale climate teleconnections Numerical analysis of solute transport and longitudinal dispersion coefficients in vegetated flow
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1