forked from earth-system-radiation/rte-rrtmgp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
80 lines (76 loc) · 2.22 KB
/
azure-pipelines.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
jobs:
- job: build_daint
pool: CSCS
strategy:
matrix:
pgi_default_gpu:
compiler_base: pgi
compiler_module: pgi
accel_module: craype-accel-nvidia60
# Generic accelerator flag
FCFLAGS: "-O3 -acc -Mallocatable=03 -gopt"
RTE_KERNELS: openacc
RUN_CMD: "srun -C gpu -A pr55 -p cscsci"
cce-cpu-icon-production:
compiler_base: cray
compiler_module: cce-icon/11.0.0
accel_module:
# Production flags for Icon model
FCFLAGS: "-hadd_paren -r am -Ktrap=divz,ovf,inv -hflex_mp=intolerant -hfp1 -hnoacc -O1,cache0"
cce-openmp:
compiler_base: cray
compiler_module: cce/11.0.0
accel_module: craype-accel-nvidia60
# OpenMP flags from Nichols Romero (Argonne)
FCFLAGS: "-hnoacc -homp -O0"
RTE_KERNELS: openacc
RUN_CMD: "srun -C gpu -A pr55 -p cscsci"
maxParallel: 2
workspace:
clean: all
steps:
- script: |
set -e
echo '
module load daint-gpu
export PATH=$CRAY_BINUTILS_BIN:$PATH
module swap PrgEnv-cray PrgEnv-$(compiler_base)
module swap $(compiler_base) $(compiler_module)
module load $(accel_module)
module load cray-netcdf cray-hdf5
export LD_LIBRARY_PATH=$CRAY_LD_LIBRARY_PATH:$LD_LIBRARY_PATH
export CUDA_HOME=$CUDATOOLKIT_HOME
echo Compiler Environment:
module list
echo LD_LIBRARY_PATH is:
echo $LD_LIBRARY_PATH
' > compiler_modules
displayName: 'Create module environment'
- script: |
set -e
cd examples/rfmip-clear-sky
source ./stage_files.sh
displayName: 'Stage files'
- script: |
set -e
source compiler_modules
export RRTMGP_ROOT=$PWD
export FC=ftn
make clean
make libs
displayName: 'Make'
- script: |
set -e
source compiler_modules
module load cray-python
export RRTMGP_ROOT=$PWD
make tests
displayName: 'Run'
- script: |
set -e
module load daint-gpu
export RRTMGP_ROOT=$PWD
# This module will unload some of the build modules, so do the checks separately
module load netcdf-python
make check
displayName: 'Check results'