Synchronous speculative simulation of tightly coupled agents in continuous time on CPUs and GPUs

IF 1.3 4区 工程技术 Q4 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
Philipp Andelfinger, A. Uhrmacher
{"title":"Synchronous speculative simulation of tightly coupled agents in continuous time on CPUs and GPUs","authors":"Philipp Andelfinger, A. Uhrmacher","doi":"10.1177/00375497231158930","DOIUrl":null,"url":null,"abstract":"Traditionally, parallel discrete-event simulations of agent-based models in continuous time are organized around logical processes exchanging time-stamped events, which clashes with the properties of models in which tightly coupled agents frequently and instantaneously access each other’s states. To illustrate the challenges of such models and to derive a solution, we consider the domain-specific modeling language ML3, which allows modelers to succinctly express transitions and interactions of linked agents based on a continuous-time Markov chain (CTMC) semantics. We propose synchronous optimistic synchronization algorithms tailored toward simulations of fine-grained interactions among tightly coupled agents in highly dynamic topologies and present implementations targeting multicore central processing units (CPUs) as well as many-core graphics processing units (GPUs). By dynamically restricting the temporal progress per round to ensure that at most one transition or state access per agent, the synchronization algorithms enable efficient direct agent interaction and limit the required agent state history to only a single current and projected state. To maintain concurrency given actions that depend on dynamically updated macro-level properties, we introduce a simple relaxation scheme with guaranteed error bounds. Using an extended variant of the classical susceptible-infected-recovered network model, we benchmark and profile the performance of the different algorithms running on CPUs and on a data center GPU.","PeriodicalId":49516,"journal":{"name":"Simulation-Transactions of the Society for Modeling and Simulation International","volume":"43 1","pages":""},"PeriodicalIF":1.3000,"publicationDate":"2023-03-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Simulation-Transactions of the Society for Modeling and Simulation International","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.1177/00375497231158930","RegionNum":4,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 1

Abstract

Traditionally, parallel discrete-event simulations of agent-based models in continuous time are organized around logical processes exchanging time-stamped events, which clashes with the properties of models in which tightly coupled agents frequently and instantaneously access each other’s states. To illustrate the challenges of such models and to derive a solution, we consider the domain-specific modeling language ML3, which allows modelers to succinctly express transitions and interactions of linked agents based on a continuous-time Markov chain (CTMC) semantics. We propose synchronous optimistic synchronization algorithms tailored toward simulations of fine-grained interactions among tightly coupled agents in highly dynamic topologies and present implementations targeting multicore central processing units (CPUs) as well as many-core graphics processing units (GPUs). By dynamically restricting the temporal progress per round to ensure that at most one transition or state access per agent, the synchronization algorithms enable efficient direct agent interaction and limit the required agent state history to only a single current and projected state. To maintain concurrency given actions that depend on dynamically updated macro-level properties, we introduce a simple relaxation scheme with guaranteed error bounds. Using an extended variant of the classical susceptible-infected-recovered network model, we benchmark and profile the performance of the different algorithms running on CPUs and on a data center GPU.
在cpu和gpu上连续时间紧耦合代理的同步推测模拟
传统上,连续时间内基于智能体模型的并行离散事件模拟是围绕交换时间戳事件的逻辑过程组织的,这与紧密耦合的智能体频繁且即时地访问彼此状态的模型的特性相冲突。为了说明此类模型的挑战并推导出解决方案,我们考虑了领域特定的建模语言ML3,该语言允许建模者基于连续时间马尔可夫链(CTMC)语义简洁地表达关联代理的转换和交互。我们提出了同步乐观同步算法,针对高动态拓扑中紧密耦合代理之间细粒度交互的模拟,并提出了针对多核中央处理单元(cpu)和多核图形处理单元(gpu)的实现。通过动态地限制每轮的时间进度,以确保每个代理最多有一个转换或状态访问,同步算法支持有效的直接代理交互,并将所需的代理状态历史限制为仅一个当前和预测状态。为了维持依赖于动态更新的宏观级属性的给定动作的并发性,我们引入了一个具有保证错误边界的简单松弛方案。使用经典易受感染-恢复网络模型的扩展变体,我们对不同算法在cpu和数据中心GPU上运行的性能进行了基准测试和分析。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
3.50
自引率
31.20%
发文量
60
审稿时长
3 months
期刊介绍: SIMULATION is a peer-reviewed journal, which covers subjects including the modelling and simulation of: computer networking and communications, high performance computers, real-time systems, mobile and intelligent agents, simulation software, and language design, system engineering and design, aerospace, traffic systems, microelectronics, robotics, mechatronics, and air traffic and chemistry, physics, biology, medicine, biomedicine, sociology, and cognition.
×
引用
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学术官方微信