From a676d19aca69e8cc6583f22485bc344af1bf0a49 Mon Sep 17 00:00:00 2001 From: Annika Lauber Date: Thu, 12 Dec 2024 10:35:41 +0100 Subject: [PATCH 1/2] Add Santis --- docs/models/icon/usage.md | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/docs/models/icon/usage.md b/docs/models/icon/usage.md index 1947a8448..0cc123dd3 100644 --- a/docs/models/icon/usage.md +++ b/docs/models/icon/usage.md @@ -75,11 +75,31 @@ srun -N 1 -c 12 --mem-per-cpu=20G spack install -v -j 12 Information on this section is not yet complete nor final. It will be updated following the progress of the Alps system deployment at CSCS and C2SM's adaptation to this new system. Please use the [C2SM support forum :material-open-in-new:](https://github.com/C2SM/Tasks-Support/discussions){:target="_blank"} in case of questions regarding building ICON on Alps. -On Todi, Spack is also used to build ICON. However, these is no suitable `spack.yaml` file present for the Spack environment. Therefore, create a `spack.yaml` file and use the software stack upstream provided by the user environment. +On Todi, Spack is also used to build ICON. However, there is no suitable `spack.yaml` file present for the Spack environment. Therefore, create a `spack.yaml` file and use the software stack upstream provided by the user environment. **1. Create a `spack.yaml` file** -From your ICON root folder: +Create the following files from the ICON build folder (different to the ICON root folder in case of a out-of-source build). + +For CPU compilation: + +=== "config/cscs/spack/v0.21.1.3/todi_cpu_nvhpc/spack.yaml" + + ```yaml + spack: + specs: + - cosmo-eccodes-definitions@2.25.0.2 + - icon @develop %nvhpc +grib2 +eccodes-definitions +ecrad ~emvorado +art +dace +acm-license ~aes ~jsbach ~ocean ~coupling ~rte-rrtmgp ~loop-exchange ~async-io-rma +pgi-inlib + view: true + concretizer: + unify: when_possible + develop: + icon: + path: ../../../../.. + spec: icon @develop %nvhpc +grib2 +eccodes-definitions +ecrad ~emvorado +art +dace +acm-license ~aes ~jsbach ~ocean ~coupling ~rte-rrtmgp ~loop-exchange ~async-io-rma +pgi-inlib + ``` + +For GPU compilation: === "config/cscs/spack/v0.21.1.3/todi_gpu_nvhpc/spack.yaml" @@ -99,6 +119,7 @@ From your ICON root folder: **2. Build ICON** +Run the following from the ICON root folder: ```console # Load ICON user-environment uenv start --view=spack icon-wcp/v1:rc4 @@ -109,14 +130,18 @@ git clone --depth 1 --recurse-submodules --shallow-submodules -b ${SPACK_TAG} ht . spack-c2sm/setup-env.sh /user-environment # Build ICON -cd /path/to/icon +cd /path/to/icon-build-folder spack env activate -d config/cscs/spack/${SPACK_TAG}/todi_gpu_nvhpc spack install ``` +### Sanits +Please follow the instructions for Todi, but run the following before loading the ICON user-environment: - +```bash +export CLUSTER_NAME=todi +``` ## Run test case In the *run* folder, you find many prepared test cases, which you can convert into run scripts. To generate the runscript of one of the experiment files, e.g. *mch_ch_lowres*, you can use the `make_runscripts` function. From 98eaf2579d8944fb245c9668e05bae68f407f169 Mon Sep 17 00:00:00 2001 From: Annika Lauber Date: Fri, 13 Dec 2024 13:45:01 +0100 Subject: [PATCH 2/2] fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michael Jähn --- docs/models/icon/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/models/icon/usage.md b/docs/models/icon/usage.md index 0cc123dd3..4963f088c 100644 --- a/docs/models/icon/usage.md +++ b/docs/models/icon/usage.md @@ -136,7 +136,7 @@ spack install ``` -### Sanits +### Santis Please follow the instructions for Todi, but run the following before loading the ICON user-environment: ```bash