From 52fe43da39363dfd7ff8ce27896190a7a852f7b4 Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Thu, 10 Oct 2024 08:43:57 -0700 Subject: [PATCH] add instructions for using netcdf on perlmutter (#1871) --- Docs/sphinx_doc/building.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Docs/sphinx_doc/building.rst b/Docs/sphinx_doc/building.rst index 039b0c313..eb50a4ba2 100644 --- a/Docs/sphinx_doc/building.rst +++ b/Docs/sphinx_doc/building.rst @@ -276,11 +276,22 @@ For Perlmutter at NERSC, look at the general instructions for building ERF using module load PrgEnv-gnu module load cudatoolkit +If you will be using NetCDF, we suggest you add the following four lines to you ``.bashrc_ext`` file. + +:: + + module load cray-hdf5-parallel/1.12.2.9 + module load cray-netcdf-hdf5parallel + export HDF5_DIR=/opt/cray/pe/hdf5-parallel/1.12.2.9 + export NETCDF_DIR=/opt/cray/pe/netcdf-hdf5parallel/4.9.0.9 + Then build ERF as, for example (specify your own path to the AMReX submodule in ``ERF/Submodules/AMReX``): :: - make -j 4 COMP=gnu USE_MPI=TRUE USE_OMP=FALSE USE_CUDA=TRUE AMREX_HOME=/global/u2/d/dwillcox/dev-erf/ERF/Submodules/AMReX + make -j 4 COMP=gnu USE_MPI=TRUE USE_OMP=FALSE USE_CUDA=TRUE AMREX_HOME=/path_to_here/ERF/Submodules/AMReX + +where ``/path_to_here`` is the path to your ERF repository. Finally, you can prepare your SLURM job script, using the following as a guide: