# 作業範本 > [name=俞昊天, 蔡茗鈞] [toc] # Compile WRF ## Install gcc and gfortran ==(5%)== - Check `which gcc` - Check `gfortran` - ![](https://i.imgur.com/2ft9zwr.png) ## Install OpenMPI ==(10%)== - [ ] Not using `sudo` or root - Check `which mpicc` and `which mpirun` - Run the sample program ![](https://i.imgur.com/3aHHbgd.png) ## Install HDF5 & NetCDF ==(15%)== - Check `which ncdump` ![](https://i.imgur.com/eoJ3w2B.png) - Report (What compile arguments did you use? Why?) HDF5: ![](https://i.imgur.com/kKmxWUa.png) 第一行用來指定compiler, 第二行讓hdf5可實現平行運算以及fortran兼容,第三行指定檔案產生位置,第四行關閉檔案共享,以及開啟更高層級的資料庫兼容。 ## Get WRF.exe - Check `tail -15 build_wrf.log` ![](https://i.imgur.com/pIvHEKH.png) 原本還會出現Problems Building Executable的畫面,後面修修改改甚至改到只剩BUGS :no_mouth: ![](https://i.imgur.com/3pffK9r.png) # Run WRF: ## Just run on head node (No need to finish) - Check Screenshot ## Run on both nodes - Check `./validate.csh ./VALIDATION ./VALIDATE` ## Optimization(Multiple Node, AVX512...) - Check `./timing.csh TIMING/rsl.out.0000` - Report (What do you do?) - Parallel scalability test for - 1 node - 2 nodes - 4 nodes # Others ## Display the WRF output: - Check Screenshot ## Profile WRF (Bonus): - Check profiler screenshot - Report (Based on the results, What are your assumptions?) ## 其他你想告訴我們的 安裝WRF相關的問題在網路論壇好難找到和這個安裝方式一樣的流程... 照著SCC Hackmd還有WRF安裝指引一直問題 :crying_cat_face: - 繳交前: - [x] HackMD 開頭寫名字 - [x] 刪除沒完成項目的分數 - [x] 可閱讀權限設定為所有人 - 繳交表單:https://forms.gle/vYumvvjcAG6bAxr4A