arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1507.04047cs.DC
收藏

空间Agent模型的并行化策略

Parallelization Strategies for Spatial Agent-Based Models

Nuno Fachada, Vitor V. Lopes, Rui C. Martins, Agostinho C. Rosa

摘要:

基于Agent的建模(ABM)是一种自底向上的建模方法,其中被建模的系统的每个实体被唯一地表示为独立的决策Agent。ABM中的大规模涌现行为是种群敏感的。因此,模拟中的代理数量应该能够反映被建模系统的现实,在某些领域中可以是数百万或数十亿个个体。在商用多核处理器中达到可接受的可伸缩性的自然解决方案包括分解模型,使得每个组件可以由不同的线程以并发方式独立处理。在本文中,我们提出了一个多线程的Java实现的PPHPC ABM,有两个目标:1)与现有的NetLogo实现的性能比较,以及,2)研究不同的并行化策略如何影响模拟性能的共享内存架构。结果表明:1)模型并行化可以产生相当大的性能增益; 2)不同的并行化策略在性能和仿真再现性方面提供特定的权衡;以及3)PPHPC是从性能和统计准确性角度比较不同实现或并行化策略的有效参考模型。

英文摘要:

Agent-based modeling (ABM) is a bottom-up modeling approach, where each entity of the system being modeled is uniquely represented as an independent decision-making agent. Large scale emergent behavior in ABMs is population sensitive. As such, the number of agents in a simulation should be able to reflect the reality of the system being modeled, which can be in the order of millions or billions of individuals in certain domains. A natural solution to reach acceptable scalability in commodity multi-core processors consists of decomposing models such that each component can be independently processed by a different thread in a concurrent manner. In this paper we present a multithreaded Java implementation of the PPHPC ABM, with two goals in mind: 1) compare the performance of this implementation with an existing NetLogo implementation; and, 2) study how different parallelization strategies impact simulation performance on a shared memory architecture. Results show that: 1) model parallelization can yield considerable performance gains; 2) distinct parallelization strategies offer specific trade-offs in terms of performance and simulation reproducibility; and, 3) PPHPC is a valid reference model for comparing distinct implementations or parallelization strategies, from both performance and statistical accuracy perspectives.

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

↑