# HPCG ## 編譯流程 ### 下載原始碼 使用 git 下載原始碼 ``` git clone https://github.com/hpcg-benchmark/hpcg.git ``` ### 產生設定檔 ``` cd hpcg mkdir build cd build ../configure Linux_MPI make ``` ## 測試執行 ### 修改 hpcg.dat 參數 ``` cd bin vim hpcg.dat ``` #### hpcg.dat - 第三行是執行問題的規模 - 第四行是執行的時間 經過測試,運行時間對 HPCG 效能影響很小。 ```= HPCG benchmark input file Sandia National Laboratories; University of Tennessee, Knoxville 256 256 128 60 ``` ### 執行 ``` mpirun -np 核心數量 ./xhpcg ```