-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
217 lines (212 loc) · 7.5 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
stages:
- build
- test
- test-devel
- documentation
# This job builds LIKWID with NVIDIA interface on the Testcluster node 'medusa' @ FAU
# The build result is stored as artifact for the test jobs
build-likwid:
stage: build
tags:
- testcluster
rules:
- if: '$CI_COMMIT_TAG' # trigger on tags
# - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "external_pull_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "external_pull_request_event"'
when: never
- if: '$CI_COMMIT_BRANCH' # trigger on commits
- when: never # don't run otherwise
variables:
SLURM_NODELIST: medusa
LIKWID_MODULE: likwid/5.2-dev
LIKWID_VERSION: 5.2.0
CUDA_MODULE: cuda/11.0
script:
- echo $CI_PIPELINE_SOURCE
- module load "$LIKWID_MODULE" "$CUDA_MODULE"
- export LIKWID_PREFIX=$(realpath $(dirname $(which likwid-topology))/..)
- module unload "$LIKWID_MODULE"
- wget "https://ftp.rrze.uni-erlangen.de/mirrors/likwid/likwid-$LIKWID_VERSION.tar.gz"
- tar xf likwid-$LIKWID_VERSION.tar.gz
- cd likwid-$LIKWID_VERSION
- sed -e s+"INSTALLED_ACCESSDAEMON = .*"+"INSTALLED_ACCESSDAEMON=$LIKWID_PREFIX/sbin/likwid-accessD"+g -i config.mk
- sed -e s+"ACCESSMODE = .*"+"ACCESSMODE=accessdaemon"+g -i config.mk
- sed -e s+"PREFIX ?= .*"+"PREFIX=$LIKWID_PREFIX"+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+"BUILDFREQ = .*"+"BUILDFREQ=false"+g -i config.mk
- sed -e s+"NVIDIA_INTERFACE = .*"+"NVIDIA_INTERFACE=true"+g -i config.mk
- make
- if [ -e likwid-accessD ]; then rm likwid-accessD; fi
- if [ -e likwid-setFreq ]; then rm likwid-setFreq; fi
- chmod +x likwid-topology
- ./likwid-topology
artifacts:
paths:
- likwid-$LIKWID_VERSION
expire_in: 1 week
# This job tests the LIKWID.jl interface with Julia 1.6
# + generates and submits code coverage to codecov.io
julia/1.6:
stage: test
tags:
- testcluster
variables:
SLURM_NODELIST: medusa # This is required to run the job on the specified node
SLURM_CONSTRAINT: hwperf # This allows hardware performance counter access
LIKWID_VERSION: 5.2.0
CUDA_MODULE: cuda/11.0
JULIA_CUDA_USE_BINARYBUILDER: "false"
JULIA_NUM_THREADS: "12"
GROUP: "All" # run all tests, i.e. CPU + GPU
rules:
# - changes:
# - "README.md"
# - "docs/**/*.md"
# - "docs/make.jl"
# - "docs/build_docs.jl"
# when: never
- when: on_success
needs:
job: build-likwid
before_script:
- cd $CI_PROJECT_DIR/likwid-$LIKWID_VERSION
- make local
- cd $CI_PROJECT_DIR
- export LD_LIBRARY_PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$LD_LIBRARY_PATH
- export PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$PATH
script:
- module load "$CUDA_MODULE"
- likwid-topology
- likwid-perfctr -i
- likwid-perfctr -a
- wget https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.2-linux-x86_64.tar.gz
- tar --strip-components=1 -xf julia-1.6.2-linux-x86_64.tar.gz
- bin/julia --color=yes --project=. -e 'using Pkg; Pkg.build(verbose=true); Pkg.test(; coverage = true);'
- bin/julia --color=yes --project=test/coverage -e 'import Pkg; Pkg.instantiate()'
- bin/julia --color=yes --project=test/coverage test/coverage/coverage.jl
# This job tests the LIKWID.jl interface with Julia 1.7
julia/1.7:
stage: test
tags:
- testcluster
variables:
SLURM_NODELIST: medusa # This is required to run the job on the specified node
SLURM_CONSTRAINT: hwperf # This allows hardware performance counter access
LIKWID_VERSION: 5.2.0
CUDA_MODULE: cuda/11.0
JULIA_CUDA_USE_BINARYBUILDER: "false"
JULIA_NUM_THREADS: "12"
GROUP: "All" # run all tests, i.e. CPU + GPU
rules:
# - changes:
# - "README.md"
# - "docs/**/*.md"
# - "docs/make.jl"
# - "docs/build_docs.jl"
# when: never
- when: on_success
needs:
job: build-likwid
before_script:
- cd $CI_PROJECT_DIR/likwid-$LIKWID_VERSION
- make local
- cd $CI_PROJECT_DIR
- export LD_LIBRARY_PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$LD_LIBRARY_PATH
- export PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$PATH
script:
- module load "$CUDA_MODULE"
- likwid-topology
- likwid-perfctr -i
- likwid-perfctr -a
- wget https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.1-linux-x86_64.tar.gz
- tar --strip-components=1 -xf julia-1.7.1-linux-x86_64.tar.gz
- bin/julia --color=yes --project=. -e 'using Pkg; Pkg.build(verbose=true); Pkg.test();'
# This job tests the LIKWID.jl interface with Julia nightly build
julia/nightly:
stage: test-devel
tags:
- testcluster
variables:
SLURM_NODELIST: medusa # This is required to run the job on the specified node
SLURM_CONSTRAINT: hwperf # This allows hardware performance counter access
LIKWID_VERSION: 5.2.0
CUDA_MODULE: cuda/11.0
JULIA_CUDA_USE_BINARYBUILDER: "false"
JULIA_NUM_THREADS: "12"
GROUP: "All" # run all tests, i.e. CPU + GPU
needs:
job: build-likwid
rules:
# - changes:
# - "README.md"
# - "docs/**/*.md"
# - "docs/make.jl"
# - "docs/build_docs.jl"
# when: never
- when: on_success
before_script:
- cd $CI_PROJECT_DIR/likwid-$LIKWID_VERSION
- make local
- cd $CI_PROJECT_DIR
- export LD_LIBRARY_PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$LD_LIBRARY_PATH
- export PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$PATH
script:
- echo "PATH= $PATH"
- echo "LD_LIBRARY_PATH= $LD_LIBRARY_PATH"
- ls -la
- module load "$CUDA_MODULE"
- likwid-topology
- likwid-perfctr -i
- likwid-perfctr -a
- wget https://julialangnightlies-s3.julialang.org/bin/linux/x64/julia-latest-linux64.tar.gz
- tar --strip-components=1 -xf julia-latest-linux64.tar.gz
- bin/julia --color=yes --project=. -e 'using Pkg; Pkg.build(verbose=true); Pkg.test();'
allow_failure: true
# # LIKWID.jl Documentation
# build-and-deploy:
# stage: documentation
# tags:
# - testcluster
# variables:
# SLURM_NODELIST: medusa # This is required to run the job on the specified node
# SLURM_CONSTRAINT: hwperf # This allows hardware performance counter access
# LIKWID_VERSION: 5.2.0
# CUDA_MODULE: cuda/11.0
# JULIA_CUDA_USE_BINARYBUILDER: "false"
# JULIA_NUM_THREADS: "12"
# needs:
# job: build-likwid
# only:
# - main
# - pushes
# - tags
# - external_pull_requests
# # rules:
# # - changes:
# # - "README.md"
# # when: never
# # - when: always
# before_script:
# - cd $CI_PROJECT_DIR/likwid-$LIKWID_VERSION
# - make local
# - cd $CI_PROJECT_DIR
# - export LD_LIBRARY_PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$LD_LIBRARY_PATH
# - export PATH=$CI_PROJECT_DIR/likwid-$LIKWID_VERSION:$PATH
# script:
# - echo "PATH= $PATH"
# - echo "LD_LIBRARY_PATH= $LD_LIBRARY_PATH"
# - echo "CI= $CI"
# - ls -la
# - module load "$CUDA_MODULE"
# - likwid-topology
# - likwid-perfctr -i
# - likwid-perfctr -a
# - wget https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.1-linux-x86_64.tar.gz
# - tar --strip-components=1 -xf julia-1.7.1-linux-x86_64.tar.gz
# - cd docs
# - ../bin/julia --color=yes build_docs.jl
# allow_failure: false