用 Intel® 加速 LAMMPS

本文于 2018 年 10 月 16 日发表于知乎专栏,查看原文

{$ source wechat cIaQOYM50lQNhDHuX6CzFw 2018 9 23 %}

1. 安装 Intel® MPI Library 并激活,如 source /share/apps/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64

2. 编译 LAMMPS 前,make yes-user-intel 激活 USER-INTEL package。

3. 用 make intel_cpu_intelmpi 编译 LAMMPS。

4. 用 KMP_BLOCKTIME=0 mpirun -np 36 lmp_intel_cpu_intelmpi -pk intel 0 omp 2 -sf intel -in in.script 运行 LAMMPS。

5. 在 in.script 的开头加入 processors * * * grid numa

参考资料:https://lammps.sandia.gov/doc/Speed_intel.html