首页 | 本学科首页   官方微博 | 高级检索  
     

基于CUDA的大规模群体行为实时仿真并行实现及优化
引用本文:贺毅辉,叶晨,刘志忠,彭伟.基于CUDA的大规模群体行为实时仿真并行实现及优化[J].计算机应用,2012,32(9):2466-2469.
作者姓名:贺毅辉  叶晨  刘志忠  彭伟
作者单位:解放军理工大学 指挥自动化学院,南京 210007
基金项目:江苏省自然科学基金资助项目(BK2010130,BK2011120)
摘    要:群体仿真中个体从环境中查找相关对象时会导致较高的时间复杂度。要使大规模群体能够实时仿真,必须降低模型运算的时间复杂度或者提高计算平台的能力。通过对Biods模型为典型案例进行研究,提出一种基于统一计算架构(CUDA)的大规模群体行为实时仿真并行实现及优化的方法。实现中将个体与GPU逻辑线程一一对应,通过将仿真环境离散化来提高相关个体查找的效率,通过并行化基数排序法将个体信息组织成具有空间局部性的数组,提高图形处理器(GPU)内存带宽的利用率。通过实验验证了该方法将仿真个体的数量提升到CPU方法的约7.3倍。

关 键 词:大规模群体行为    统一计算架构    并行计算    实时仿真
收稿时间:2012-02-24
修稿时间:2012-04-18

Parallel simulation and optimization of CUDA-based real-time huge crowd behavior
HE Yi-hui,YE Chen,LIU Zhi-zhong,PENG Wei.Parallel simulation and optimization of CUDA-based real-time huge crowd behavior[J].journal of Computer Applications,2012,32(9):2466-2469.
Authors:HE Yi-hui  YE Chen  LIU Zhi-zhong  PENG Wei
Affiliation:Institute of Command Automation,PLA University of Science and Technology,Nanjing Jiangsu 210007,China
Abstract:That the individuals search relevant objects from the environment may cause high time complexity during the crowd simulation.If the crowd should be simulated in real-time,the time complexity of the model needs reducing and the computing capability of the simulation platform needs enhancing.In this paper,the Biods model was studied as a typical case and a solution of how to parallelize and optimize the real-time huge crowd simulation based on Compute Unified Device Architecture(CUDA) was presented.Each individual was correspondent to a logical Graphic Processing Unit(GPU) thread.By discretizing simulation environment,the efficiency of searching the relevant individuals was improved.The individual information was organized into an array with the spatial locality by parallel radix sort in order to improve the utilization of the GPU memory bandwidth.The experiment verifies the solution presented here has improved number of simulation individuals up to about 7.3 times as CPU solution.
Keywords:huge crowd behavior  Compute Unified Device Architecture(CUDA)  parallel computing  real-time simulation
本文献已被 CNKI 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号