Use this guide: HiFi installation guide
Use the same mpi compilers for PETsc, HDF5, and HiFi (netCDF can use serial compilers).
module swap PrgEnv-intel/5.2.82 PrgEnv-gnu module load cray-hdf5-parallel cray-netcdf-hdf5parallel cray-petsc export PHYSICS="lnxmhd4"