WRF v3.8 Installation Best Practices
WRF v3.8 Installation Best Practices
Best Practices
BEST PRACTICES
export OMPI_MPICC=icc
export CC=mpicc
export OMPI_MPICXX=icpc
export CXX=mpicxx
export OMPI_MPIFC=ifort
export FC=mpif90
export OMPI_MPIF90=ifort
export F77=mpif90
export F90=mpif90
HDF5=/application/tools/i16/hdf5-1.8.16/install-hpcx
PNET=/application/tools/i16/parallel-netcdf-1.7.0/install-hpcx
export OMPI_MPICC=icc
export OMPI_MPICXX=icpc
export CPPFLAGS=”-I$HDF5/include -I$PNET/include”
export OMPI_MPIFC=ifort
export CFLAGS=”-I$HDF5/include -I$PNET/include”
export OMPI_MPIF77=ifort
export CXXFLAGS=”-I$HDF5/include -I$PNET/include”
export OMPI_MPIF90=ifort
export FCFLAGS=”-I$HDF5/include -I$PNET/include”
export FFLAGS=”-I$HDF5/include -I$PNET/include”
export CFLAGS=’-g -O2 -fPIC’
export LDFLAGS=”-I$HDF5/include -I$PNET/include
export CXXFLAGS=’-g -O2 -fPIC’ -L$PNET/lib “
export FFLAGS=’-g -fPIC’
export FCFLAGS=’-g -fPIC’ export WRFIO_NCD_LARGE_FILE_SUPPORT=1
NCDIR=/application/tools/i16/netcdf-4.4.0/install-hpcx
export LD_LIBRARY_PATH=${NCDIR}/lib:${LD_LI- EOF
BRARY_PATH}
./clean -a
export CPPFLAGS=”-I$HDF5/include -I$NCDIR/include” ./configure < answer
export CFLAGS=”-I$HDF5/include -I$NCDIR/include” rm -f answer
export CXXFLAGS=”-I$HDF5/include -I$NCDIR/include” ./compile -j 32 wrf
USE_HCOLL=1 else
FLAGS=”” fi
HCA=mlx5_0
FLAGS+=”-mca btl openib,sm,self “ FLAGS+=”-hostfile <machinefile> “
FLAGS+=”-x HCOLL_MAIN_IB=$HCA:1 “
FLAGS+=”-x HCOLL_IB_IF_INCLUDE=$HCA:1 “ mpirun -np 1024 $FLAGS wrf.exe
FLAGS+=”-mca coll_fca_enable 0 “
6.1 Running WRF using Parallel netcdf
if [[ “$USEKNEM” == “1” ]]; then In the namelist.input, the following settings support
pNetCDF by setting value to 11:
FLAGS+=”-mca btl_sm_use_knem 1 “
io_form_boundary
FLAGS+=”-x MXM_SHM_KCOPY_MODE=knem “
io_form_history
else
io_form_auxinput2
FLAGS+=”-mca btl_sm_use_knem 0 “
io_form_auxhist2
fi