This repository has been archived by the owner on Nov 11, 2021. It is now read-only.
forked from NOAA-GFDL/FMS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
249 lines (235 loc) · 5.82 KB
/
.gitlab-ci.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
before_script:
- hostname
# **********************************************************************
# NCRC
# **********************************************************************
.ncrcScript: &ncrcScript
script:
- source /opt/cray/pe/modules/default/init/bash
- module use /ncrc/home2/fms/local/modulefiles
- module load fre/bronx-12
- module rm cray-netcdf cray-hdf5
- module rm PrgEnv-intel PrgEnv-pgi PrgEnv-gnu PrgEnv-cray
- module load PrgEnv-${COMP_FAMILY}
- module swap ${COMP_NAME} ${COMP_NAME}/${COMP_VERSION}
- module load cray-netcdf
- module load cray-hdf5
- list_paths -o pathnames_fms .
- mkmf -m Makefile -p libfms_${myBuild}.a -t $FRE_COMMANDS_HOME/site/$FRE_SYSTEM_SITE/${COMP_mkTemplate}.mk -c "$CPPFLAGS" -Iinclude -Impp/include pathnames_fms
- make $TARGET libfms_${myBuild}.a
# **********************************************************************
# Intel 16 Compilers
# **********************************************************************
build:ncrc:intel16:debug:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: intel
COMP_NAME: intel
COMP_VERSION: 16.0.3.210
COMP_mkTemplate: intel
TARGET: OPENMP=on DEBUG=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML"
myBuild: ncrc_intel16_debug
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:intel16:repro:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: intel
COMP_NAME: intel
COMP_VERSION: 16.0.3.210
COMP_mkTemplate: intel
TARGET: OPENMP=on REPRO=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML"
myBuild: ncrc_intel16_repro
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:intel16:prod:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: intel
COMP_NAME: intel
COMP_VERSION: 16.0.3.210
COMP_mkTemplate: intel
TARGET: OPENMP=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML"
myBuild: ncrc_intel16_prod
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
# **********************************************************************
# GNU Compilers
# **********************************************************************
build:ncrc:gnu:debug:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: gnu
COMP_NAME: gcc
COMP_VERSION: 5.3.0
COMP_mkTemplate: gnu
TARGET: DEBUG=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML -D_F2000"
myBuild: ncrc_gnu_debug
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:gnu:repro:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: gnu
COMP_NAME: gcc
COMP_VERSION: 5.3.0
COMP_mkTemplate: gnu
TARGET: OPENMP=on REPRO=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML -D_F2000"
myBuild: ncrc_gnu_repro
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:gnu:prod:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: gnu
COMP_NAME: gcc
COMP_VERSION: 5.3.0
COMP_mkTemplate: gnu
TARGET: OPENMP=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML -D_F2000"
myBuild: ncrc_gnu_prod
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
# **********************************************************************
# PGI Compilers
# **********************************************************************
build:ncrc:pgi:debug:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: pgi
COMP_NAME: pgi
COMP_VERSION: 17.7.0
COMP_mkTemplate: pgi
TARGET: OPENMP=on DEBUG=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML"
myBuild: ncrc_pgi_debug
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:pgi:repro:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: pgi
COMP_NAME: pgi
COMP_VERSION: 17.7.0
COMP_mkTemplate: pgi
TARGET: OPENMP=on REPRO=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML"
myBuild: ncrc_pgi_repro
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:pgi:prod:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: pgi
COMP_NAME: pgi
COMP_VERSION: 17.7.0
COMP_mkTemplate: pgi
TARGET: OPENMP=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML"
myBuild: ncrc_pgi_prod
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
# **********************************************************************
# Cray Compilers
# **********************************************************************
build:ncrc:cce:debug:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: cray
COMP_NAME: cce
COMP_VERSION: 8.5.0
COMP_mkTemplate: cce
TARGET: OPENMP=on DEBUG=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML -D_F2000"
myBuild: ncrc_cce_debug
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:cce:repro:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: cray
COMP_NAME: cce
COMP_VERSION: 8.5.0
COMP_mkTemplate: cce
TARGET: OPENMP=on REPRO=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML -D_F2000"
myBuild: ncrc_cce_repro
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod
build:ncrc:cce:prod:
stage: build
tags:
- ncrc
variables:
COMP_FAMILY: cray
COMP_NAME: cce
COMP_VERSION: 8.5.0
COMP_mkTemplate: cce
TARGET: OPENMP=on
CPPFLAGS: "-Duse_netCDF -Duse_libMPI -DINTERNAL_FILE_NML -D_F2000"
myBuild: ncrc_cce_prod
<<: *ncrcScript
artifacts:
paths:
- libfms_${myBuild}.a
- ./*.mod