---
# System prepended metadata

title: Compile WRF

---

scc winter hw
> [name=謝明浩]
> [mail=ming.hao.hsieh10914@gmail.com]

[toc]

# Compile WRF
## module load GCC ==(5%)==
- Check `module list`
- ![](https://i.imgur.com/vdDUnF1.png)
 
## Install HDF5 + NetCDF ==(15%)==
- Check `which ncdump`
![](https://i.imgur.com/LiWrmOk.png)

- Report (Why use this flag?)
    - enable-parallel : to build a parallel hdf5
    - enable-share: 啟用共享,方便啟用其他內置庫
    - enable-hl : enables high level library support
    - prefix : 配置安裝的路徑
- 
## Get WRF.exe ==(0%)==
- Check `tail -15 build_wrf.log`
- ![](https://i.imgur.com/mQtiOOE.jpg)
- 我嘗試了一星期修改configure.wrf但還是出現undefined reference, 以下是我改的內容
- 1. 因error ： undifined "ip" 把CFLAGS -ip -> -p
- sed -i '/^CFLAGS_LOCAL/s/.*/CFLAGS_LOCAL    =       -w -O3 -ip -DRSL0_ONLY/' configure.wrf

- 2. 用which cpp取代/scinet/niagara/software/2019b/core/bin/cpp

- sed -i 's#/lib/cpp#/scinet/niagara/software/2019b/core/bin/cpp#' configure.wrf

但還是卡在build 階段 ：（


---

# Run WRF:
## Just run on headnode ==(0%)==
- Check Screenshot
## Single Node with Slurm ==(0%)==
- Check `./validate.csh ./VALIDATION ./VALIDATE`
## Optimization(Multiple Node, AVX512...) ==(0% ⬆️)==
- Check `./timing.csh TIMING/rsl.out.0000`
- Report (What do you do?)
    - AVX512
    - Parallel scalability test for
        - 1 node
        - 2 nodes
        - 4 nodes

---

# Others
## Profile WRF ==(0%)==:
- Check Vtune Screenshot
- Report (Based on the results, What are your assumptions?)

## Display output ==(0%)==:
- Check Screenshot