-
Notifications
You must be signed in to change notification settings - Fork 232
/
.gitlab-ci.yml
187 lines (174 loc) · 5.62 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
variables:
GIT_STRATEGY: fetch
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_TAG
build-x86-daemon:
stage: build
variables:
LIKWID_COMPILER: "GCC"
LIKWID_ACCESSMODE: "accessdaemon"
LIKWID_MODULE: "likwid/5.2-dev"
script:
- mkdir /tmp/$CI_JOB_NAME
- module load "$LIKWID_MODULE"
- export LIKWID_PREFIX=$(realpath $(dirname $(which likwid-topology))/..)
- module unload "$LIKWID_MODULE"
- sed -e s+"INSTALLED_ACCESSDAEMON = .*"+"INSTALLED_ACCESSDAEMON=$LIKWID_PREFIX/sbin/likwid-accessD"+g -i config.mk
- sed -e s+"ACCESSMODE = .*"+"ACCESSMODE=$LIKWID_ACCESSMODE"+g -i config.mk
- sed -e s+"COMPILER = .*"+"COMPILER=$LIKWID_COMPILER"+g -i config.mk
- sed -e s+"PREFIX ?= .*"+"PREFIX=/tmp/$CI_JOB_NAME"+g -i config.mk
- sed -e s+"INSTRUMENT_BENCH = .*"+"INSTRUMENT_BENCH=true"+g -i config.mk
- sed -e s+"BUILD_SYSFEATURES = .*"+"BUILD_SYSFEATURES=true"+g -i config.mk
- sed -e s+"BUILDDAEMON = .*"+"BUILDDAEMON=false"+g -i config.mk
- sed -e s+"BUILDFREQ = .*"+"BUILDFREQ=false"+g -i config.mk
- make
- make BUILDDAEMON=false BUILDFREQ=false BUILD_SYSFEATURES=true install
- cp -r /tmp/$CI_JOB_NAME $CI_PROJECT_DIR/$CI_JOB_NAME
- if [ -e $CI_JOB_NAME/sbin/likwid-accessD ]; then rm $CI_JOB_NAME/sbin/likwid-accessD; fi
- if [ -e $CI_JOB_NAME/sbin/likwid-setFreq ]; then rm $CI_JOB_NAME/sbin/likwid-setFreq; fi
- rm -rf /tmp/$CI_JOB_NAME
before_script:
- rm -rf /tmp/$CI_JOB_NAME
after_script:
- rm -rf /tmp/$CI_JOB_NAME
artifacts:
paths:
- $CI_JOB_NAME/
tags:
- testcluster
build-x86-perf:
stage: build
variables:
LIKWID_COMPILER: "GCC"
LIKWID_ACCESSMODE: "perf_event"
script:
- mkdir /tmp/$CI_JOB_NAME
- sed -e s+"ACCESSMODE = .*"+"ACCESSMODE=$LIKWID_ACCESSMODE"+g -i config.mk
- sed -e s+"COMPILER = .*"+"COMPILER=$LIKWID_COMPILER"+g -i config.mk
- sed -e s+"PREFIX ?= .*"+"PREFIX=/tmp/$CI_JOB_NAME"+g -i config.mk
- sed -e s+"INSTRUMENT_BENCH = .*"+"INSTRUMENT_BENCH=true"+g -i config.mk
- sed -e s+"BUILDDAEMON = .*"+"BUILDDAEMON=false"+g -i config.mk
- sed -e s+"BUILD_SYSFEATURES = .*"+"BUILD_SYSFEATURES=true"+g -i config.mk
- sed -e s+"BUILDFREQ = .*"+"BUILDFREQ=false"+g -i config.mk
- make
- make BUILDDAEMON=false BUILDFREQ=false BUILD_SYSFEATURES=true install
- cp -r /tmp/$CI_JOB_NAME $CI_PROJECT_DIR/$CI_JOB_NAME
- if [ -e $CI_JOB_NAME/sbin/likwid-accessD ]; then rm $CI_JOB_NAME/sbin/likwid-accessD; fi
- if [ -e $CI_JOB_NAME/sbin/likwid-setFreq ]; then rm $CI_JOB_NAME/sbin/likwid-setFreq; fi
- rm -rf /tmp/$CI_JOB_NAME
before_script:
- rm -rf /tmp/$CI_JOB_NAME
after_script:
- rm -rf /tmp/$CI_JOB_NAME
artifacts:
paths:
- $CI_JOB_NAME/
tags:
- testcluster
build-arm8-perf:
stage: build
variables:
LIKWID_COMPILER: "GCCARMv8"
LIKWID_ACCESSMODE: "perf_event"
SLURM_NODELIST: warmup
script:
- mkdir /tmp/$CI_JOB_NAME
- sed -e s+"ACCESSMODE = .*"+"ACCESSMODE=$LIKWID_ACCESSMODE"+g -i config.mk
- sed -e s+"COMPILER = .*"+"COMPILER=$LIKWID_COMPILER"+g -i config.mk
- sed -e s+"PREFIX ?= .*"+"PREFIX=/tmp/$CI_JOB_NAME"+g -i config.mk
- sed -e s+"INSTRUMENT_BENCH = .*"+"INSTRUMENT_BENCH=true"+g -i config.mk
- sed -e s+"BUILDDAEMON = .*"+"BUILDDAEMON=false"+g -i config.mk
- sed -e s+"BUILD_SYSFEATURES = .*"+"BUILD_SYSFEATURES=true"+g -i config.mk
- sed -e s+"BUILDFREQ = .*"+"BUILDFREQ=false"+g -i config.mk
- make
- make BUILDDAEMON=false BUILDFREQ=false install
- cp -r /tmp/$CI_JOB_NAME $CI_PROJECT_DIR/$CI_JOB_NAME
- if [ -e $CI_JOB_NAME/sbin/likwid-accessD ]; then rm $CI_JOB_NAME/sbin/likwid-accessD; fi
- if [ -e $CI_JOB_NAME/sbin/likwid-setFreq ]; then rm $CI_JOB_NAME/sbin/likwid-setFreq; fi
- rm -rf /tmp/$CI_JOB_NAME
before_script:
- rm -rf /tmp/$CI_JOB_NAME
after_script:
- rm -rf /tmp/$CI_JOB_NAME
artifacts:
paths:
- $CI_JOB_NAME/
tags:
- testcluster
#check-event-files:
# stage: .pre
# tags:
# - testcluster
# script:
# - module load python
# - test/check_data_files.py events
# - test/check_data_files.py groups
notify-github-pending:
stage: .pre
tags:
- testcluster
variables:
NO_SLURM_SUBMIT: 1
when: always
script:
- test/gitlab-ci/notify_github.sh pending
arch-gen:
stage: build
tags:
- testcluster
variables:
NO_SLURM_SUBMIT: 1
script:
- test/gitlab-ci/generate_arch_jobs.sh > arch-pipeline.yml
artifacts:
paths:
- arch-pipeline.yml
arch-pipeline:
stage: test
trigger:
include:
- artifact: arch-pipeline.yml
job: arch-gen
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
cuda-gen:
stage: build
tags:
- testcluster
variables:
SLURM_NODELIST: medusa
script:
- test/gitlab-ci/generate_cuda_jobs.sh > cuda-pipeline.yml
artifacts:
paths:
- cuda-pipeline.yml
cuda-pipeline:
stage: test
trigger:
include:
- artifact: cuda-pipeline.yml
job: cuda-gen
strategy: depend
variables:
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
notify-github-success:
stage: .post
tags:
- testcluster
variables:
NO_SLURM_SUBMIT: 1
when: on_success
script:
- test/gitlab-ci/notify_github.sh success
notify-github-failure:
stage: .post
tags:
- testcluster
variables:
NO_SLURM_SUBMIT: 1
when: on_failure
script:
- test/gitlab-ci/notify_github.sh failure