Tool:VTune Profiler
Object: Lammps
其他工具:
perf, gperftools (CPU profiler)
Nsight Systems (CPU/GPU profiler)
目的
利用Profiler可以分析程式執行效率、硬體利用率,或是代碼個區段運行時間分析。
前置作業
- basic:
- Lammps:
- Intel Vtune profiler:
- OpenMP
分析
-
Hotspot:
分析各段程式占用CPU的時間多寡,可以用來找出最耗時的區段以利後續優化。
e.g. Lammps/examples/in.melt
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
(1) 利用mpi跑測試程式,比較兩者運行效率
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
上圖為vtune -collect hotspots ./lmp -in ./in.melt 測試結果(未使用mpirun)
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
上圖為vtune -collect hotspots mpirun -np 4 ./lmp -in ./in.melt 測試結果(使用mpirun)
接下來的研究方向:
- 分子數或問題參數的差異分析與比較(附圖)
- 更多的分析output項目認識
- GUI可以幫助PPT製作