-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
199 lines (189 loc) · 5.07 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
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- benchmark
- evaluate
default:
before_script:
- "ml fpga devel intel/oneapi/22.3.0 bittware/520n Boost CMake"
- "python3 -m venv .venv"
- "source .venv/bin/activate"
- "pip install --upgrade pip"
- "pip install -r requirements.txt"
build thesis:
stage: build
needs: []
only:
- main
- staging
tags:
- imt-no-sla
image: "texlive/texlive"
before_script: []
script:
- "cd docs/thesis"
- "latexmk --pdf thesis.tex"
- "cd ../proposal"
- "latexmk --pdf proposal.tex"
artifacts:
paths:
- "docs/thesis/thesis.pdf"
- "docs/proposal/proposal.pdf"
expire_in: 1 month
generate inputs:
stage: build
only:
- main
- staging
needs: []
tags:
- noctua2
variables:
SCHEDULER_PARAMETERS: "-A hpc-lco-kenter -p normal -t 00:15:00 -c 16 --mem=8G"
script:
- "./scripts/performance_benchmark/generate_inputs.sh"
- "./scripts/quality_benchmark/generate_inputs.sh"
- "mkdir -p cpu_benchmark.out"
- "./tool.py generate -o cpu_benchmark.out -n 127 -m 128 -a 6e-5 -b 0.42 -e 0.25"
artifacts:
paths:
- "performance_benchmark.out"
- "quality_benchmark.out"
- "cpu_benchmark.out"
build ffscite64:
stage: build
only:
- main
- staging
needs: []
tags:
- noctua2
variables:
SCHEDULER_PARAMETERS: "-A hpc-lco-kenter -p normal -q fpgasynthesis -t 1-00:00:00 -c 8 --mem=100G"
script:
- "mkdir -p build"
- "cd build"
- "cmake -DCMAKE_BUILD_TYPE=Release -DPC2_SYSTEM=Noctua2 .."
- "VERBOSE=1 make bbSCITE64"
artifacts:
when: always
paths:
- "build/src/bbSCITE64"
- "build/src/bbSCITE64.prj/reports"
- "build/src/bbSCITE64.prj/quartus_sh_compile.log"
build ffscite96:
stage: build
only:
- main
- staging
needs: []
tags:
- noctua2
variables:
SCHEDULER_PARAMETERS: "-A hpc-lco-kenter -p normal -q fpgasynthesis -t 1-00:00:00 -c 8 --mem=100G"
script:
- "mkdir -p build"
- "cd build"
- "cmake -DCMAKE_BUILD_TYPE=Release -DPC2_SYSTEM=Noctua2 .."
- "VERBOSE=1 make bbSCITE96"
artifacts:
when: always
paths:
- "build/src/bbSCITE96"
- "build/src/bbSCITE96.prj/reports"
- "build/src/bbSCITE96.prj/quartus_sh_compile.log"
benchmark ffscite:
stage: benchmark
only:
- main
- staging
needs:
- "build ffscite64"
- "build ffscite96"
- "generate inputs"
tags:
- noctua2
variables:
SCHEDULER_PARAMETERS: "-A hpc-lco-kenter -p fpga --constraint=bittware_520n_20.4.0_hpc -t 03:00:00"
script:
- "./scripts/quality_benchmark/ffscite.sh"
- "./scripts/performance_benchmark/ffscite.sh"
artifacts:
paths:
- "quality_benchmark.out/*/bbSCITE"
- "performance_benchmark.out/*/bbSCITE64"
- "performance_benchmark.out/*/bbSCITE96"
benchmark scite:
stage: benchmark
only:
- main
- staging
needs:
- "generate inputs"
tags:
- noctua2
variables:
SCHEDULER_PARAMETERS: "-A hpc-lco-kenter -p normal -c 64 -t 08:00:00"
script:
- "mkdir -p build"
- "cd build"
- "cmake -DCMAKE_BUILD_TYPE=Release -DPC2_SYSTEM=Noctua2 .."
- "make -j64 scite"
- "cd .."
- "./scripts/quality_benchmark/scite.sh"
- "./scripts/performance_benchmark/scite.sh"
artifacts:
paths:
- "quality_benchmark.out/*/SCITE"
- "performance_benchmark.out/*/SCITE"
benchmark cpu scoring on noctua2:
stage: benchmark
only:
- main
- staging
needs:
- "generate inputs"
tags:
- noctua2
variables:
SCHEDULER_PARAMETERS: "-A hpc-lco-kenter -p normal -t 00:20:00 --exclusive"
DPCPP_CPU_NUM_CUS: 128
before_script:
- "ml fpga devel intel/oneapi/22.3.0 bittware/520n Boost CMake"
script:
- "mkdir -p build"
- "cd build"
- "cmake -DCMAKE_BUILD_TYPE=Release -DPC2_SYSTEM=Noctua2 .."
- "VERBOSE=1 make cpu_scoring_benchmark cpu_scoring_offload"
- "perf stat -e instructions,ex_ret_mmx_fp_instr.sse_instr,L1-dcache-load-misses,L1-dcache-loads
./cpu_scoring_benchmark/cpu_scoring_benchmark -i ../cpu_benchmark.out/input.csv -r 128 -l 10000000"
artifacts:
paths:
- "build/cpu_scoring_benchmark/cpu_scoring_benchmark"
- "build/cpu_scoring_benchmark/cpu_scoring_offload.asm"
benchmark cpu scoring on noctua1:
stage: benchmark
only:
- main
- staging
needs:
- "generate inputs"
tags:
- noctua1
variables:
SCHEDULER_PARAMETERS: "-A hpc-lco-kenter -p normal -t 00:20:00 --exclusive"
DPCPP_CPU_NUM_CUS: 40
before_script:
- "ml toolchain devel intel/2022b Boost CMake"
script:
- "mkdir -p build"
- "cd build"
- "cmake -DCMAKE_BUILD_TYPE=Release -DPC2_SYSTEM=Noctua1 .."
- "VERBOSE=1 make cpu_scoring_benchmark cpu_scoring_offload"
- "perf stat -e instructions,L1-dcache-load-misses,L1-dcache-loads
./cpu_scoring_benchmark/cpu_scoring_benchmark -i ../cpu_benchmark.out/input.csv -r 40 -l 2500000"
artifacts:
paths:
- "build/cpu_scoring_benchmark/cpu_scoring_benchmark"
- "build/cpu_scoring_benchmark/cpu_scoring_offload.asm"