-
Notifications
You must be signed in to change notification settings - Fork 18
/
.gitlab-ci.yml
197 lines (179 loc) · 5.89 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
################################################################################
# CUPLA_CXX : {g++, clang++}
# [g++] : {9, 10, 11} <list>
# [clang++] : {11, 12, 13, 14, 15} <list>
# CUPLA_BOOST_VERSIONS : {1.74.0, 1.75.0} <list>
# CUPLA_BUILD_TYPE : {Debug, Release}
# CUPLA_CMAKE_ARGS : <string>
include:
- local: '/script/compiler_base.yml'
stages:
- validate
- compile-and-run
################################################################################
# Check code formation with clang-format
# pull request validation:
# - check C++ code style
pull-request-validation:
stage: validate
image: ubuntu:focal
script:
- apt update
- apt install -y -q wget
# source: https://github.com/muttleyxd/clang-tools-static-binaries/releases
- wget https://github.com/muttleyxd/clang-tools-static-binaries/releases/download/master-f3a37dd2/clang-format-12.0.1_linux-amd64
- mv clang-format-12.0.1_linux-amd64 /usr/bin/clang-format
- chmod +x /usr/bin/clang-format
- clang-format --version
# Check C++ code style
- source $CI_PROJECT_DIR/script/check_cpp_code_style.sh
tags:
- x86_64
- cpuonly
interruptible: true
cuda110:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda110-gcc:3.2
variables:
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda
cuda114:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda114-gcc:3.2
variables:
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda
gcc1:
stage: compile-and-run
variables:
CUPLA_CXX: "g++-9 g++-10 g++-11"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_gcc
gcc2:
stage: compile-and-run
variables:
CUPLA_CXX: "g++-9 g++-10 g++-11"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_gcc
gcc3:
stage: compile-and-run
variables:
CUPLA_CXX: "g++-9 g++-10 g++-11"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_gcc
clang:
stage: compile-and-run
variables:
CUPLA_CXX: "clang++-11 clang++-12 clang++-13 clang++-14 clang++-15"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_clang
cudaClang110:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda110:3.2
variables:
CUPLA_CXX: "clang++-15"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda_clang
cudaClang114:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda114:3.2
variables:
CUPLA_CXX: "clang++-15"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda_clang
hip54:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-rocm5.4:3.2
variables:
CMAKE_MODULE_PATH: "/opt/rocm/hip/cmake"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_hip
hip55:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-rocm5.5:3.2
variables:
CMAKE_MODULE_PATH: "/opt/rocm/hip/cmake"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_hip
################################################################################
# CMake integration test
#
# build external project and use cupla via cmake add_subdirectory()
# use internal alpaka
addSubdirectoryInternal:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:3.2
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_ALPAKA_PROVIDER: "internal"
script:
- source script/integration/build_add_subdirectory.sh
tags:
- x86_64
- cpuonly
interruptible: true
# build external project and use cupla via cmake add_subdirectory()
# use installed alpaka
addSubdirectoryExternal:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:3.2
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_ALPAKA_PROVIDER: "external"
script:
- source script/integration/install_alpaka.sh
- source script/integration/build_add_subdirectory.sh
tags:
- x86_64
- cpuonly
interruptible: true
# build external project and use cupla via cmake add_subdirectory()
# alpaka was included in the project cmake before cupla
addSubdirectoryThirdPartyAlpaka:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:3.2
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.74.0
script:
- source script/integration/build_add_subdirectory_third_party_alpaka.sh
tags:
- x86_64
- cpuonly
interruptible: true
# build external project and use cupla via cmake find_package()
# cupla was installed with disabled examples
findPackageWithoutExample:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:3.2
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_BUILD_EXAMPLE: "OFF"
script:
- source script/integration/install_alpaka.sh
- source script/integration/install_cupla.sh
- source script/integration/build_find_package.sh
tags:
- x86_64
- cpuonly
interruptible: true
# build external project and use cupla via cmake find_package()
# cupla was installed with enabled examples
findPackageWithExample:
stage: compile-and-run
image: registry.hzdr.de/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:3.2
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_BUILD_EXAMPLE: "ON"
script:
- source script/integration/install_alpaka.sh
- source script/integration/install_cupla.sh
- source script/integration/build_find_package.sh
tags:
- x86_64
- cpuonly
interruptible: true