-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlevante_intel_hybrid
executable file
·49 lines (39 loc) · 1.43 KB
/
levante_intel_hybrid
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
#!/bin/bash
# ICON
#
# ------------------------------------------
# Copyright (C) 2004-2024, DWD, MPI-M, DKRZ, KIT, ETH, MeteoSwiss
# Contact information: icon-model.org
# See AUTHORS.TXT for a list of authors
# See LICENSES/ for license information
# SPDX-License-Identifier: BSD-3-Clause
# ------------------------------------------
set -eu
MY_DIR=$(cd "$(dirname "$0")"; pwd)
ICON_DIR=$(cd "${MY_DIR}/../.."; pwd)
if [ ! -z "${BB_NAME-}" ]; then
set -x
set MPI_LAUNCH='srun -A mh0156 -p compute -N 1 -t 2'
else
# Setting MPI_LAUNCH to an empty string is not the same as not setting it at
# all for the configure script of YAC. With the following, we make sure that
# we do not pass any additional arguments:
set dummy; shift
fi
${ICON_DIR}/config/dkrz/levante.intel --enable-openmp --enable-separate-mods "$@"
if [ ! -z "${BB_NAME-}" ] ; then
MAKE_PROCS=22
else
MAKE_PROCS=8
fi
make -j ${MAKE_PROCS}
# Create shared mtime library for use in scripting
# TODO: 'module rm' works around module python3 being hidden in buildbot
module rm python3
module load $ICON_DIR/etc/Modules/icon-levante intel-oneapi-compilers
"$ICON_DIR/scripts/building/build_mtime_shared" icc ifort
if [ ! -z "${BB_NAME-}" ] ; then
"${ICON_DIR}/scripts/buildbot_scripts/build_checks/check_depgen_warnings.sh"
"${ICON_DIR}/scripts/buildbot_scripts/build_checks/check_remake.sh"
"${ICON_DIR}/scripts/buildbot_scripts/build_checks/check_git_untracked.sh"
fi