-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_todi.sh
executable file
·58 lines (42 loc) · 1.97 KB
/
setup_todi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
set -e -x
# Core dependencies (Spack)
source ./todi_env.sh
root_path=$(pwd)
# Set compile time arguments
#SERIALBOX2_ROOT=$(spack find --format "{prefix}" [email protected]%pgi | head -n1)
#XML2_ROOT=$(spack find --format "{prefix}" libxml2 | head -n1)
#ECCODES_ROOT=$(spack find --format "{prefix}" [email protected]%pgi +build_shared_libs | head -n1)
XML2_ROOT="/user-environment/linux-sles15-neoverse_v2/gcc-12.3.0/libxml2-2.10.3-7bjhm4gkxtzf4hfmugjv2ivcplisiwf7"
LOC_GT4PY=${root_path}/gt4py/
LOC_ICON4PY_ATM_DYN_ICONAM=${root_path}/icon4py/model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/
LOC_ICON4PY_ADVECTION=${root_path}/icon4py/model/atmosphere/advection/src/icon4py/model/atmosphere/advection/
LOC_ICON4PY_DIFFUSION=${root_path}/icon4py/model/atmosphere/diffusion/src/icon4py/model/atmosphere/diffusion/stencils
LOC_ICON4PY_INTERPOLATION=${root_path}/icon4py/model/common/src/icon4py/model/common/interpolation/stencils
LOC_ICON4PY_TOOLS=${root_path}/icon4py/tools/src/icon4pytools/
LOC_ICON4PY_BIN=${root_path}/icon4py/.venv/
LOC_GRIDTOOLS=${root_path}/gridtools/
# Compile and run ICON based on the build type
pushd icon-exclaim
# Sorry this has to be manually done due to issues with git via ssh or https
git submodule update --init --recursive
pushd externals
pushd ecrad
git apply ../../ecrad_patch.diff
popd
popd
mkdir -p build_dsl
pushd build_dsl
#SERIALBOX2_ROOT=$SERIALBOX2_ROOT \
XML2_ROOT=$XML2_ROOT \
ECCODES_ROOT=$ECCODES_ROOT \
LOC_GT4PY=$LOC_GT4PY \
LOC_ICON4PY_ATM_DYN_ICONAM=$LOC_ICON4PY_ATM_DYN_ICONAM \
LOC_ICON4PY_ADVECTION=$LOC_ICON4PY_ADVECTION \
LOC_ICON4PY_DIFFUSION=$LOC_ICON4PY_DIFFUSION \
LOC_ICON4PY_INTERPOLATION=$LOC_ICON4PY_INTERPOLATION \
LOC_ICON4PY_TOOLS=$LOC_ICON4PY_TOOLS \
LOC_ICON4PY_BIN=$LOC_ICON4PY_BIN \
LOC_GRIDTOOLS=$LOC_GRIDTOOLS \
./../config/cscs/todi_nospack.dsl.nvidia_PPK -disable-rte-rrtmgp --enable-liskov=substitute --disable-liskov-fused
make -j20