@@ -52,13 +52,20 @@ jobs:
52
52
- uses : actions/checkout@v4
53
53
with :
54
54
submodules : ' true'
55
- - run : ./.github/scripts/install_dependencies.sh
55
+
56
+ - name : Get number of CPU cores
57
+ uses : SimenB/github-actions-cpu-cores@v2
58
+ id : cpu-cores
59
+
60
+ - name : Install dependencies
61
+ run : ./.github/scripts/install_dependencies.sh
56
62
57
63
-
uses :
hendrikmuhs/[email protected]
58
64
59
65
- name : Test
60
66
env :
61
67
BUILD_TYPE : ${{ matrix.build_type }}
68
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
62
69
run : |
63
70
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
64
71
./.github/scripts/build.sh VERBOSE=${{ matrix.verbose }}
80
87
with :
81
88
python-version : 3.10.10
82
89
- uses : actions/checkout@v4
83
- - run : ./.github/scripts/install_dependencies.sh
90
+
91
+ - name : Install dependencies
92
+ run : ./.github/scripts/install_dependencies.sh
84
93
85
94
- name : Test
86
95
run : ./dev/${{ matrix.script }}
@@ -97,11 +106,18 @@ jobs:
97
106
- uses : actions/checkout@v4
98
107
with :
99
108
submodules : ' true'
100
- - run : ./.github/scripts/install_dependencies.sh
109
+
110
+ - name : Get number of CPU cores
111
+ uses : SimenB/github-actions-cpu-cores@v2
112
+ id : cpu-cores
113
+
114
+ - name : Install dependencies
115
+ run : ./.github/scripts/install_dependencies.sh
101
116
102
117
- name : Test
103
118
env :
104
119
CMAKE_PARAMS : " -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
120
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
105
121
run : ./.github/scripts/unittest.sh
106
122
107
123
@@ -116,7 +132,13 @@ jobs:
116
132
- uses : actions/checkout@v4
117
133
with :
118
134
submodules : ' true'
119
- - run : ./.github/scripts/install_dependencies.sh
135
+
136
+ - name : Get number of CPU cores
137
+ uses : SimenB/github-actions-cpu-cores@v2
138
+ id : cpu-cores
139
+
140
+ - name : Install dependencies
141
+ run : ./.github/scripts/install_dependencies.sh
120
142
121
143
-
uses :
hendrikmuhs/[email protected]
122
144
@@ -125,6 +147,7 @@ jobs:
125
147
# In order to get compilation warnings produced per source file, we must do a non-IPO build
126
148
# We also turn warnings into errors for this target by doing a strict compile
127
149
CMAKE_PARAMS : " -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_STRICT_COMPILE=on -DVTR_IPO_BUILD=off"
150
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
128
151
run : |
129
152
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
130
153
./.github/scripts/build.sh
@@ -139,57 +162,68 @@ jobs:
139
162
{
140
163
name : ' Basic' ,
141
164
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on' ,
142
- suite : ' vtr_reg_basic'
165
+ suite : ' vtr_reg_basic' ,
166
+ extra_pkgs : " "
143
167
},
144
168
{
145
169
name : ' Basic with highest assertion level' ,
146
170
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=4 -DWITH_BLIFEXPLORER=on' ,
147
- suite : ' vtr_reg_basic'
171
+ suite : ' vtr_reg_basic' ,
172
+ extra_pkgs : " "
148
173
},
149
174
{
150
175
name : ' Basic_odin' ,
151
176
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on' ,
152
- suite : ' vtr_reg_basic_odin'
177
+ suite : ' vtr_reg_basic_odin' ,
178
+ extra_pkgs : " "
153
179
},
154
180
{
155
181
name : ' Basic with NO_GRAPHICS' ,
156
182
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=off' ,
157
- suite : ' vtr_reg_basic'
183
+ suite : ' vtr_reg_basic' ,
184
+ extra_pkgs : " "
158
185
},
159
186
{
160
187
name : ' Basic with NO_SERVER' ,
161
188
params : ' -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=on -DVPR_USE_SERVER=off' ,
162
- suite : ' vtr_reg_basic'
189
+ suite : ' vtr_reg_basic' ,
190
+ extra_pkgs : " "
163
191
},
164
192
{
165
193
name : ' Basic with CAPNPROTO disabled' ,
166
194
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_CAPNPROTO=off' ,
167
- suite : ' vtr_reg_basic'
195
+ suite : ' vtr_reg_basic' ,
196
+ extra_pkgs : " "
168
197
},
169
198
{
170
199
name : ' Basic with VTR_ENABLE_DEBUG_LOGGING' ,
171
200
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_DEBUG_LOGGING=on' ,
172
- suite : ' vtr_reg_basic'
201
+ suite : ' vtr_reg_basic' ,
202
+ extra_pkgs : " "
173
203
},
174
204
{
175
205
name : ' Basic_odin with VTR_ENABLE_DEBUG_LOGGING' ,
176
206
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_DEBUG_LOGGING=on -DWITH_PARMYS=OFF -DWITH_ODIN=on' ,
177
- suite : ' vtr_reg_basic_odin'
207
+ suite : ' vtr_reg_basic_odin' ,
208
+ extra_pkgs : " "
178
209
},
179
210
{
180
211
name : ' Strong' ,
181
212
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on' ,
182
- suite : ' vtr_reg_strong'
213
+ suite : ' vtr_reg_strong' ,
214
+ extra_pkgs : " libeigen3-dev"
183
215
},
184
216
{
185
217
name : ' Strong_odin' ,
186
218
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on' ,
187
- suite : ' vtr_reg_strong_odin'
219
+ suite : ' vtr_reg_strong_odin' ,
220
+ extra_pkgs : " "
188
221
},
189
222
{
190
223
name : ' Valgrind Memory' ,
191
224
params : ' -DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_ODIN=on' ,
192
- suite : ' vtr_reg_valgrind_small'
225
+ suite : ' vtr_reg_valgrind_small' ,
226
+ extra_pkgs : " "
193
227
}
194
228
]
195
229
name : ' R: ${{ matrix.name }}'
@@ -198,20 +232,32 @@ jobs:
198
232
- uses : actions/setup-python@v5
199
233
with :
200
234
python-version : 3.10.10
235
+
201
236
- uses : actions/checkout@v4
202
237
with :
203
238
submodules : ' true'
204
- - run : ./.github/scripts/install_dependencies.sh
239
+
240
+ - name : Get number of CPU cores
241
+ uses : SimenB/github-actions-cpu-cores@v2
242
+ id : cpu-cores
243
+
244
+ - name : Install dependencies
245
+ run : ./.github/scripts/install_dependencies.sh
246
+
247
+ - name : Install external libraries
248
+ run : sudo apt install -y ${{ matrix.extra_pkgs }}
249
+ if : ${{ matrix.extra_pkgs }}
205
250
206
251
-
uses :
hendrikmuhs/[email protected]
207
252
208
253
- name : Test
209
254
env :
210
255
CMAKE_PARAMS : ${{ matrix.params }}
256
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
211
257
run : |
212
258
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
213
259
./.github/scripts/build.sh
214
- ./run_reg_test.py ${{ matrix.suite }} -show_failures -j2
260
+ ./run_reg_test.py ${{ matrix.suite }} -show_failures -j${{ steps.cpu-cores.outputs.count}}
215
261
216
262
- name : Upload regression run files
217
263
if : ${{ !cancelled() }}
@@ -259,7 +305,12 @@ jobs:
259
305
with :
260
306
submodules : ' true'
261
307
262
- - run : ./.github/scripts/install_dependencies.sh
308
+ - name : Get number of CPU cores
309
+ uses : SimenB/github-actions-cpu-cores@v2
310
+ id : cpu-cores
311
+
312
+ - name : Install dependencies
313
+ run : ./.github/scripts/install_dependencies.sh
263
314
264
315
-
uses :
hendrikmuhs/[email protected]
265
316
@@ -273,12 +324,13 @@ jobs:
273
324
# depends on LLVM and all CI tests where VTR_ENABLE_SANITIZE is enabled fail. For a temporary
274
325
# fix, we manually reduce the entropy. This quick fix should be removed in the future
275
326
# when github deploys a more stable Ubuntu image.
327
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
276
328
run : |
277
329
sudo sysctl -w vm.mmap_rnd_bits=28
278
330
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
279
331
./.github/scripts/build.sh
280
332
# We skip QoR since we are only checking for errors in sanitizer runs
281
- ./run_reg_test.py ${{ matrix.suite }} -show_failures -j2 -skip_qor
333
+ ./run_reg_test.py ${{ matrix.suite }} -show_failures -j${{ steps.cpu-cores.outputs.count }} -skip_qor
282
334
283
335
284
336
Parmys :
@@ -292,18 +344,25 @@ jobs:
292
344
- uses : actions/checkout@v4
293
345
with :
294
346
submodules : ' true'
295
- - run : ./.github/scripts/install_dependencies.sh
347
+
348
+ - name : Get number of CPU cores
349
+ uses : SimenB/github-actions-cpu-cores@v2
350
+ id : cpu-cores
351
+
352
+ - name : Install dependencies
353
+ run : ./.github/scripts/install_dependencies.sh
296
354
297
355
-
uses :
hendrikmuhs/[email protected]
298
356
299
357
- name : Test
300
358
env :
301
359
CMAKE_PARAMS : ' -DVTR_IPO_BUILD=off'
302
360
BUILD_TYPE : debug
361
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
303
362
run : |
304
363
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
305
364
./.github/scripts/build.sh
306
- ./run_reg_test.py parmys_reg_basic -show_failures -j2
365
+ ./run_reg_test.py parmys_reg_basic -show_failures -j${{ steps.cpu-cores.outputs.count }}
307
366
308
367
309
368
ODINII :
@@ -317,19 +376,26 @@ jobs:
317
376
- uses : actions/checkout@v4
318
377
with :
319
378
submodules : ' true'
320
- - run : ./.github/scripts/install_dependencies.sh
379
+
380
+ - name : Get number of CPU cores
381
+ uses : SimenB/github-actions-cpu-cores@v2
382
+ id : cpu-cores
383
+
384
+ - name : Install dependencies
385
+ run : ./.github/scripts/install_dependencies.sh
321
386
322
387
-
uses :
hendrikmuhs/[email protected]
323
388
324
389
- name : Test
325
390
env :
326
391
CMAKE_PARAMS : ' -DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on'
327
392
BUILD_TYPE : debug
393
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
328
394
run : |
329
395
sudo sysctl -w vm.mmap_rnd_bits=28
330
396
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
331
397
./.github/scripts/build.sh
332
- ./run_reg_test.py odin_reg_basic -show_failures -j2
398
+ ./run_reg_test.py odin_reg_basic -show_failures -j${{ steps.cpu-cores.outputs.count }}
333
399
334
400
335
401
VQM2BLIF :
@@ -343,13 +409,20 @@ jobs:
343
409
- uses : actions/checkout@v4
344
410
with :
345
411
submodules : ' true'
346
- - run : ./.github/scripts/install_dependencies.sh
412
+
413
+ - name : Get number of CPU cores
414
+ uses : SimenB/github-actions-cpu-cores@v2
415
+ id : cpu-cores
416
+
417
+ - name : Install dependencies
418
+ run : ./.github/scripts/install_dependencies.sh
347
419
348
420
-
uses :
hendrikmuhs/[email protected]
349
421
350
422
- name : Test
351
423
env :
352
424
BUILD_TYPE : release
425
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
353
426
run : |
354
427
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
355
428
./.github/scripts/build.sh
@@ -378,7 +451,13 @@ jobs:
378
451
- uses : actions/checkout@v4
379
452
with :
380
453
submodules : ' true'
381
- - run : ./.github/scripts/install_dependencies.sh
454
+
455
+ - name : Get number of CPU cores
456
+ uses : SimenB/github-actions-cpu-cores@v2
457
+ id : cpu-cores
458
+
459
+ - name : Install dependencies
460
+ run : ./.github/scripts/install_dependencies.sh
382
461
383
462
-
uses :
hendrikmuhs/[email protected]
384
463
@@ -387,6 +466,7 @@ jobs:
387
466
CMAKE_PARAMS : " -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_ODIN=on"
388
467
MATRIX_EVAL : ${{ matrix.eval }}
389
468
BUILD_TYPE : release
469
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
390
470
run : |
391
471
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
392
472
./.github/scripts/build.sh
@@ -413,13 +493,20 @@ jobs:
413
493
- uses : actions/checkout@v4
414
494
with :
415
495
submodules : ' true'
416
- - run : ./.github/scripts/install_dependencies.sh
496
+
497
+ - name : Get number of CPU cores
498
+ uses : SimenB/github-actions-cpu-cores@v2
499
+ id : cpu-cores
500
+
501
+ - name : Install dependencies
502
+ run : ./.github/scripts/install_dependencies.sh
417
503
418
504
-
uses :
hendrikmuhs/[email protected]
419
505
420
506
- name : Test
421
507
env :
422
508
CMAKE_PARAMS : ' -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on'
509
+ NUM_PROC : ${{ steps.cpu-cores.outputs.count }}
423
510
_COVERITY_URL : ' https://scan.coverity.com/download/linux64'
424
511
_COVERITY_MD5 : ' d0d7d7df9d6609e578f85096a755fb8f'
425
512
run : |
0 commit comments