-
Notifications
You must be signed in to change notification settings - Fork 0
228 lines (184 loc) · 5.71 KB
/
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
name: CI-Artifact
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
env:
CXX: clang++
CC: clang
OMP_NUM_THREAD: 1
# to test if the first stage of the CI starts (the data collection)
# this will cause the plotting stage to fail, as not enough data was collected
# CI_SCORE_TEST: 1
jobs:
run-corrbench:
name: "MPI-Corrbench v1.2.1 Dynamic"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Update apt
run: sudo apt-get update
- name: Install LLVM
run: sudo apt-get install libllvm12 llvm-12 llvm-12-dev
- name: Install Clang
run: sudo apt-get install clang-12
- name: Install OpenMPI
run: sudo apt-get install libopenmpi-dev openmpi-bin
- name: Setup env
run: |
sudo ln -f -s /usr/bin/clang-12 /usr/bin/clang
sudo ln -f -s /usr/bin/clang++-12 /usr/bin/clang++
sudo ln -f -s /usr/bin/llvm-symbolizer-12 /usr/bin/llvm-symbolizer
- name: Setup mpi-arg-tracer
working-directory: mpi-arg-tracer
run: |
bash init.sh
source bashrc
- name: Setup MPI-CorrBench
working-directory: mpi-corrbench
run: |
source bashrc
bash init.sh
- name: Trace MPI-CorrBench
working-directory: mpi-corrbench
run: |
source bashrc
bash execute.sh
- uses: actions/upload-artifact@v3
with:
name: corrbench-trace
path: mpi-corrbench/MPI-Corrbench/mpi-arg-trace-files
run-corrbench-static:
name: "MPI-Corrbench v1.2.1 Static"
runs-on: ubuntu-20.04
# Do not ignore bash profile files. From:
# https://github.com/marketplace/actions/setup-miniconda
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: s-weigand/setup-conda@v1
with:
conda-channels: anaconda, conda-forge
- name: Setup MPI-CorrBench
working-directory: mpi-corrbench
run: |
source bashrc
bash init.sh
- name: Setup collection of static Data
working-directory: mpi-scoring
run: |
source bashrc
bash init.sh
- name: Statically Analyze MPI-CorrBench
working-directory: mpi-corrbench
run: |
source bashrc
bash collect_static_data.sh
- uses: actions/upload-artifact@v3
with:
name: corrbench-trace
path: mpi-corrbench/MPI-Corrbench/mpi-arg-trace-files
run-mbi:
name: "MPI Bugs Initiative v1.0.0 Dynamic"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Update apt
run: sudo apt-get update
- name: Install LLVM
run: sudo apt-get install libllvm12 llvm-12 llvm-12-dev
- name: Install Clang
run: sudo apt-get install clang-12
- name: Install OpenMPI
run: sudo apt-get install libopenmpi-dev openmpi-bin
- name: Setup env
run: |
sudo ln -f -s /usr/bin/clang-12 /usr/bin/clang
sudo ln -f -s /usr/bin/clang++-12 /usr/bin/clang++
sudo ln -f -s /usr/bin/llvm-symbolizer-12 /usr/bin/llvm-symbolizer
- name: Setup mpi-arg-tracer
working-directory: mpi-arg-tracer
run: |
bash init.sh
source bashrc
- name: Setup MBI
working-directory: mpi-bugs-initiative
run: |
source bashrc
bash init.sh
- name: Trace MBI
working-directory: mpi-bugs-initiative
run: |
source bashrc
bash execute.sh
- uses: actions/upload-artifact@v3
with:
name: mbi-trace
path: mpi-bugs-initiative/MpiBugsInitiative/mpi-arg-trace-files
run-mbi-static:
name: "MPI Bugs Initiative v1.0.0 Static"
runs-on: ubuntu-20.04
# Do not ignore bash profile files. From:
# https://github.com/marketplace/actions/setup-miniconda
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: s-weigand/setup-conda@v1
with:
conda-channels: anaconda, conda-forge
- name: Setup MBI
working-directory: mpi-bugs-initiative
run: |
source bashrc
bash init.sh
- name: Setup collection of static Data
working-directory: mpi-scoring
run: |
source bashrc
bash init.sh
- name: Statically Analyze MBI
working-directory: mpi-bugs-initiative
run: |
source bashrc
bash collect_static_data.sh
- uses: actions/upload-artifact@v3
with:
name: mbi-trace
path: mpi-bugs-initiative/MpiBugsInitiative/mpi-arg-trace-files
run-scoring:
needs: [run-mbi, run-corrbench, run-mbi-static, run-corrbench-static]
name: "MPI Usage Pattern Scorer"
runs-on: ubuntu-20.04
# Do not ignore bash profile files. From:
# https://github.com/marketplace/actions/setup-miniconda
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: s-weigand/setup-conda@v1
with:
conda-channels: anaconda, conda-forge
- name: Setup Scoring
working-directory: mpi-scoring
run: |
source bashrc
bash init.sh
- uses: actions/download-artifact@v3
with:
path: mpi-scoring/traces
- name: Execute Scoring
working-directory: mpi-scoring
run: |
source bashrc
bash execute.sh
- uses: actions/upload-artifact@v3
with:
name: plots
path: mpi-scoring/mpi-arg-usage/plots