Tool:VTune Profiler
Object: Lammps
其他工具:
perf, gperftools (CPU profiler)
Nsight Systems (CPU/GPU profiler)
利用Profiler可以分析程式執行效率、硬體利用率,或是代碼個區段運行時間分析。
Hotspot:
分析各段程式占用CPU的時間多寡,可以用來找出最耗時的區段以利後續優化。
e.g. Lammps/examples/in.melt
(1) 利用mpi跑測試程式,比較兩者運行效率
上圖為vtune -collect hotspots ./lmp -in ./in.melt 測試結果(未使用mpirun)
上圖為vtune -collect hotspots mpirun -np 4 ./lmp -in ./in.melt 測試結果(使用mpirun)
接下來的研究方向: