• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2015, Vol. 37 ›› Issue (09): 1614-1620.

• 论文 • Previous Articles     Next Articles

Short-range force algorithm optimization
in Lammps based on OpenCL  

ZHAO Chenglong1,SHI Huibin1,YU Xinfeng2   

  1. (1.College of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 210016;
    2.College of Computer Science and Technology,Nanjing University of Science and Technology,Nanjing  210094,China)
  • Received:2014-08-25 Revised:2014-10-31 Online:2015-09-25 Published:2015-09-25

Abstract:

Lammps is a widely used open source software for molecular dynamics simulations and related issues, through which we can understand solid and liquid nature. It enables the CUDA and the OpenCL to accelerate calculation. Since the OpenCL has crossplatform features, it becomes a research focus. We summarize the OpenCL kernel programming principles and propose an improved Amdahl's law which can measure the acceleration performance on heterogeneous platforms. The shortrange force algorithm in Lammps on Y485P platform is tested. We achieve better acceleration effect by optimizing the kernel source codes of the key parts, such as neighborlist building and shortrange force calculation.

Key words: GPU;Lammps;OpenCL;molecular dynamics;short-range force;kernel optimization