This guide describes how to configure and compile WRF on Gadi using PBS.
git clone git@github.com:nci/WRF.gitcd WRF
source build.envOptional:
export NETCDF4=1export WRF_CHEM=1./clean -aRun:
./configureWhen prompted, enter:
- Architecture option (e.g.
79) - Nest option (e.g.
1)
| Option | Parallel Mode | Optimisation |
|---|---|---|
| 76 | serial | -O2 |
| 77 | smpar | -O2 |
| 78 | dmpar | -O2 |
| 79 | sm+dm | -O2 |
| 72 | serial | -O3 |
| 73 | smpar | -O3 |
| 74 | dmpar | -O3 |
| 75 | sm+dm | -O3 |
Recommended (most users) and Verified:
79
1
It will create a file named "configure.wrf".
Revise the PBS job file compile.pbs:
nano compile.pbsChange the YOUR_PROEJCT to your own NCI project with SU allocations:
#!/bin/bash
#PBS -l walltime=3:30:00
#PBS -l mem=28GB
#PBS -l ncpus=7
#PBS -j oe
#PBS -q normalsr
#PBS -l wd
#PBS -W umask=0022
#PBS -l software=intel-compiler
#PBS -l storage=gdata/YOUR_PORJECT
source build.env
# Use half available CPUs for make
export J="-j $(( PBS_NCPUS / 2 ))"
echo "Starting WRF compilation..."
./compile em_realSubmit the job:
qsub compile.pbsqstatAfter completion, check for:
WRF/main/wrf.exe
WRF/main/real.exe
WRF/main/tc.exe
WRF/main/ndown.exe
source build.env
./clean -a
./configure
qsub compile.pbs- Do not compile on login nodes.
- Use
normalsror an appropriate queue. - Typical compile time: 30–40 minutes.
- Use
-O3options for maximum performance builds. - Ensure your project storage is correctly declared in the PBS
#PBS -l storage=line if required.