From 445a8c5ac33cef3c40141b7e26a423473e1b7cb5 Mon Sep 17 00:00:00 2001 From: Annika Lauber Date: Fri, 29 Nov 2024 14:22:50 +0100 Subject: [PATCH] Load probtest env --- docs/models/icon/large_use_cases.md | 7 +++++++ docs/models/icon/usage.md | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/models/icon/large_use_cases.md b/docs/models/icon/large_use_cases.md index a8770dbd..c46ac2b5 100644 --- a/docs/models/icon/large_use_cases.md +++ b/docs/models/icon/large_use_cases.md @@ -69,6 +69,13 @@ Then follow the instructions in [Configure and compile :material-open-in-new:](u Before adding anything to the official ICON, we recommend you to run all tests locally first starting with CPU. +For running the check scripts in the following, you need to have loaded a probtest environment and CDO and export `BB_NAME` to your builder. E.g. for Piz Daint: +```bash +source /project/g110/icon/probtest/conda/miniconda/bin/activate probtest +module load daint-gpu CDO +export BB_NAME=daint_cpu_nvidia +``` + #### Test on CPU To ensure that there are no basic issues with the namelist, we recommend to start testing on CPU before going over to GPU testing. Create the check file and run the test locally in the folder you built CPU in (set `EXP=`): diff --git a/docs/models/icon/usage.md b/docs/models/icon/usage.md index 17015445..1947a844 100644 --- a/docs/models/icon/usage.md +++ b/docs/models/icon/usage.md @@ -24,13 +24,19 @@ To [set up a Spack instance :material-open-in-new:](https://c2sm.github.io/spack Refer to the official spack-c2sm documentation for [installing ICON using Spack :material-open-in-new:](https://c2sm.github.io/spack-c2sm/latest/QuickStart.html#icon){:target="_blank"}. -After the first compilation on GPU, you need to create a `setting` file: +After the first compilation, you need to create a `setting` file (the following example is for Piz Daint, please adapt the lines according to the machine you are using): === "daint_gpu_nvhpc" ```shell + # Get SPACK_TAG used on machine SPACK_TAG=$(cat "config/cscs/SPACK_TAG_C2SM") - ENV_NAME=daint_gpu_nvhpc # modify if necessary + # Set the name of the environment, which should be equal to the builder + ENV_NAME=daint_gpu_nvhpc + # Load probtest environment (only needed if you want to run check files) + source /project/g110/icon/probtest/conda/miniconda/bin/activate probtest + # Ensure CDO is loaded on your machine module load daint-gpu CDO + # Remove and create setting file with the following two commands rm -f setting ./config/cscs/create_sh_env $SPACK_TAG $ENV_NAME ```