- 获取算例文件:
mkdir -p /path/to/WRFTEST
cd /path/to/WRFTEST
wget https://www2.mmm.ucar.edu/WG2bench/conus_2.5_v3/1-RST/RST/ -r -c -np -nH --cut-dirs 2 --restrict-file-names=nocontrol -e robots=off --reject "index.html*"
wget https://www2.mmm.ucar.edu/WG2bench/conus_2.5_v3/wrfbdy_d01.gz -r -c -np -nH --cut-dirs 2 --restrict-file-names=nocontrol -e robots=off --reject "index.html*"
wget https://www2.mmm.ucar.edu/WG2bench/conus_2.5_v3/1-RST/namelist.input -r -c -np -nH --cut-dirs 2 --restrict-file-names=nocontrol -e robots=off --reject "index.html*"
- 生成算例:
cat rst_6hr* | gunzip -c > wrfrst_d01_2005-06-04_06_00_00
- 拷贝WRF-4.2.2/run/*到目录“/path/to/WRFTEST”下:
cp /path/to/WRF/WRF-4.2.2/run/* ./
rm -rf wrf.exe
ln -s /path/to/WRF/WRF-4.2.2/main/wrf.exe wrf.exe
- 解压“wrfbdy_d01”文件:
gunzip wrfbdy_d01.gz
- 修改namelist.input文件。
- 运行WRF程序,记录运行时间:
time mpirun --allow-run-as-root -N 8 -np 640 -x PATH -x LD_LIBRARY_PATH --hostfile hf4 OMP_NUM_THREADS=1 /path/to/WRFTEST/wrf.exe
- 使用Hyper IO库运行WRF程序,记录运行时间:
time mpirun --allow-run-as-root -N 8 -np 640 -x PATH -x LD_LIBRARY_PATH -x LD_PRELOAD=/path/to/IO_Middleware_version_aarch64/lib/libock_shore_pnetcdf.so -x OCK_IO_CONFIG=/path/to/wrf.json --hostfile hf4 OMP_NUM_THREADS=1 /path/to/WRFTEST/wrf.exe
- 对比6和7应用运行的时长。