Journal of Systems Engineering and Electronics ›› 2012, Vol. 34 ›› Issue (11): 2366-2373.doi: 10.3969/j.issn.1001-506X.2012.11.31

• 软件、算法与仿真 • 上一篇    下一篇

多核CPU-GPU异构平台下并行Agent仿真负载均衡方法

王维平, 余文广, 侯洪涛, 李群   

  1. 国防科学技术大学信息系统与管理学院, 湖南 长沙 410073
  • 出版日期:2012-11-20 发布日期:2010-01-03

Load balancing mechanism for parallel agent-based simulation on multi-core CPU and GPU heterogeneous platform

WANG Wei-ping, YU Wen-guang, HOU Hong-tao, LI Qun   

  1. College of Information Systems and Management, National University of Defense Technology, Changsha 410073, China
  • Online:2012-11-20 Published:2010-01-03

摘要:

多核中央处理器(central processing unit, CPU)图形处理器(graphic processing unit, GPU)异构平台为并行Agent仿真提供了一个新的硬件执行平台,而负载均衡方法是充分利用硬件计算资源、提高并行仿真运行性能的一个有效途径。针对多核CPU-GPU异构平台下并行Agent仿真的负载均衡问题,建立了面向多核CPU-GPU的并行Agent仿真多层负载分配模型,提出了基于带约束的k-means空间聚类算法的并行Agent仿真静态负载划分方法和动态负载均衡策略,并给出了划分子集间的可交互性判定,以过滤掉大量不会发生交互关系的Agent之间的交互判定计算。最后通过实验验证了本文提出方法的有效性。

Abstract:

The platforms equipped with multi-core central processing units (CPU) and graphics processing units (GPU) provide a new hardware for executing parallel agent-based simulations (PABS) and the load balancing mechanism is an effective approach to make the best of hardware resources and improve the running performance of parallel simulations. In order to solve the load balancing for PABS on multi-core CPU and GPU heterogeneous platforms, a multilayer load distributing model for PABS is built and a static load partitioning algorithm based on the constrained k-means clustering algorithm and a dynamic load balancing algorithm are proposed. The method of finding interactions between partitions is presented so as to avoid a lot of unnecessary computations between agents that actually can not interact with each other. The experiments show that the mechanism is viable and effective.