Skip to content

Commit 4b2c176

Browse files
committed
try with 2 cores
1 parent 8c7c656 commit 4b2c176

File tree

1 file changed

+30
-126
lines changed

1 file changed

+30
-126
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,13 @@ jobs:
5252
- uses: actions/checkout@v4
5353
with:
5454
submodules: 'true'
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
55+
- run: ./.github/scripts/install_dependencies.sh
6256

6357
- uses: hendrikmuhs/[email protected]
6458

6559
- name: Test
6660
env:
6761
BUILD_TYPE: ${{ matrix.build_type }}
68-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
6962
run: |
7063
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
7164
./.github/scripts/build.sh VERBOSE=${{ matrix.verbose }}
@@ -87,9 +80,7 @@ jobs:
8780
with:
8881
python-version: 3.10.10
8982
- uses: actions/checkout@v4
90-
91-
- name: Install dependencies
92-
run: ./.github/scripts/install_dependencies.sh
83+
- run: ./.github/scripts/install_dependencies.sh
9384

9485
- name: Test
9586
run: ./dev/${{ matrix.script }}
@@ -106,18 +97,11 @@ jobs:
10697
- uses: actions/checkout@v4
10798
with:
10899
submodules: 'true'
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
100+
- run: ./.github/scripts/install_dependencies.sh
116101

117102
- name: Test
118103
env:
119104
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
120-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
121105
run: ./.github/scripts/unittest.sh
122106

123107

@@ -132,13 +116,7 @@ jobs:
132116
- uses: actions/checkout@v4
133117
with:
134118
submodules: 'true'
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
119+
- run: ./.github/scripts/install_dependencies.sh
142120

143121
- uses: hendrikmuhs/[email protected]
144122

@@ -147,7 +125,6 @@ jobs:
147125
#In order to get compilation warnings produced per source file, we must do a non-IPO build
148126
#We also turn warnings into errors for this target by doing a strict compile
149127
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 }}
151128
run: |
152129
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
153130
./.github/scripts/build.sh
@@ -162,68 +139,57 @@ jobs:
162139
{
163140
name: 'Basic',
164141
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
165-
suite: 'vtr_reg_basic',
166-
extra_pkgs: ""
142+
suite: 'vtr_reg_basic'
167143
},
168144
{
169145
name: 'Basic with highest assertion level',
170146
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=4 -DWITH_BLIFEXPLORER=on',
171-
suite: 'vtr_reg_basic',
172-
extra_pkgs: ""
147+
suite: 'vtr_reg_basic'
173148
},
174149
{
175150
name: 'Basic_odin',
176151
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
177-
suite: 'vtr_reg_basic_odin',
178-
extra_pkgs: ""
152+
suite: 'vtr_reg_basic_odin'
179153
},
180154
{
181155
name: 'Basic with NO_GRAPHICS',
182-
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=4 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=off',
183-
suite: 'vtr_reg_basic',
184-
extra_pkgs: ""
156+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=off',
157+
suite: 'vtr_reg_basic'
185158
},
186159
{
187160
name: 'Basic with NO_SERVER',
188-
params: '-DVTR_ASSERT_LEVEL=4 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=on -DVPR_USE_SERVER=off',
189-
suite: 'vtr_reg_basic',
190-
extra_pkgs: ""
161+
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=on -DVPR_USE_SERVER=off',
162+
suite: 'vtr_reg_basic'
191163
},
192164
{
193165
name: 'Basic with CAPNPROTO disabled',
194166
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_CAPNPROTO=off',
195-
suite: 'vtr_reg_basic',
196-
extra_pkgs: ""
167+
suite: 'vtr_reg_basic'
197168
},
198169
{
199170
name: 'Basic with VTR_ENABLE_DEBUG_LOGGING',
200171
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_DEBUG_LOGGING=on',
201-
suite: 'vtr_reg_basic',
202-
extra_pkgs: ""
172+
suite: 'vtr_reg_basic'
203173
},
204174
{
205175
name: 'Basic_odin with VTR_ENABLE_DEBUG_LOGGING',
206176
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',
207-
suite: 'vtr_reg_basic_odin',
208-
extra_pkgs: ""
177+
suite: 'vtr_reg_basic_odin'
209178
},
210179
{
211180
name: 'Strong',
212181
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
213-
suite: 'vtr_reg_strong',
214-
extra_pkgs: "libeigen3-dev"
182+
suite: 'vtr_reg_strong'
215183
},
216184
{
217185
name: 'Strong_odin',
218186
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
219-
suite: 'vtr_reg_strong_odin',
220-
extra_pkgs: ""
187+
suite: 'vtr_reg_strong_odin'
221188
},
222189
{
223190
name: 'Valgrind Memory',
224-
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=off',
225-
suite: 'vtr_reg_valgrind_small',
226-
extra_pkgs: ""
191+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_ODIN=on',
192+
suite: 'vtr_reg_valgrind_small'
227193
}
228194
]
229195
name: 'R: ${{ matrix.name }}'
@@ -232,41 +198,20 @@ jobs:
232198
- uses: actions/setup-python@v5
233199
with:
234200
python-version: 3.10.10
235-
236201
- uses: actions/checkout@v4
237202
with:
238203
submodules: 'true'
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 }}
204+
- run: ./.github/scripts/install_dependencies.sh
250205

251206
- uses: hendrikmuhs/[email protected]
252207

253-
- name: Test-build
208+
- name: Test
254209
env:
255210
CMAKE_PARAMS: ${{ matrix.params }}
256-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
257211
run: |
258212
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
259213
./.github/scripts/build.sh
260-
261-
- name: Setup tmate session__
262-
uses: mxschmitt/action-tmate@v3
263-
264-
- name: Test-run
265-
env:
266-
CMAKE_PARAMS: ${{ matrix.params }}
267-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
268-
run: |
269-
./run_reg_test.py ${{ matrix.suite }} -show_failures -j${{ steps.cpu-cores.outputs.count}}
214+
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2
270215
271216
- name: Upload regression run files
272217
if: ${{ !cancelled() }}
@@ -314,12 +259,7 @@ jobs:
314259
with:
315260
submodules: 'true'
316261

317-
- name: Get number of CPU cores
318-
uses: SimenB/github-actions-cpu-cores@v2
319-
id: cpu-cores
320-
321-
- name: Install dependencies
322-
run: ./.github/scripts/install_dependencies.sh
262+
- run: ./.github/scripts/install_dependencies.sh
323263

324264
- uses: hendrikmuhs/[email protected]
325265

@@ -333,13 +273,12 @@ jobs:
333273
# depends on LLVM and all CI tests where VTR_ENABLE_SANITIZE is enabled fail. For a temporary
334274
# fix, we manually reduce the entropy. This quick fix should be removed in the future
335275
# when github deploys a more stable Ubuntu image.
336-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
337276
run: |
338277
sudo sysctl -w vm.mmap_rnd_bits=28
339278
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
340279
./.github/scripts/build.sh
341280
# We skip QoR since we are only checking for errors in sanitizer runs
342-
./run_reg_test.py ${{ matrix.suite }} -show_failures -j${{ steps.cpu-cores.outputs.count }} -skip_qor
281+
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2 -skip_qor
343282
344283
345284
Parmys:
@@ -353,25 +292,18 @@ jobs:
353292
- uses: actions/checkout@v4
354293
with:
355294
submodules: 'true'
356-
357-
- name: Get number of CPU cores
358-
uses: SimenB/github-actions-cpu-cores@v2
359-
id: cpu-cores
360-
361-
- name: Install dependencies
362-
run: ./.github/scripts/install_dependencies.sh
295+
- run: ./.github/scripts/install_dependencies.sh
363296

364297
- uses: hendrikmuhs/[email protected]
365298

366299
- name: Test
367300
env:
368301
CMAKE_PARAMS: '-DVTR_IPO_BUILD=off'
369302
BUILD_TYPE: debug
370-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
371303
run: |
372304
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
373305
./.github/scripts/build.sh
374-
./run_reg_test.py parmys_reg_basic -show_failures -j${{ steps.cpu-cores.outputs.count }}
306+
./run_reg_test.py parmys_reg_basic -show_failures -j2
375307
376308
377309
ODINII:
@@ -385,26 +317,19 @@ jobs:
385317
- uses: actions/checkout@v4
386318
with:
387319
submodules: 'true'
388-
389-
- name: Get number of CPU cores
390-
uses: SimenB/github-actions-cpu-cores@v2
391-
id: cpu-cores
392-
393-
- name: Install dependencies
394-
run: ./.github/scripts/install_dependencies.sh
320+
- run: ./.github/scripts/install_dependencies.sh
395321

396322
- uses: hendrikmuhs/[email protected]
397323

398324
- name: Test
399325
env:
400326
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on'
401327
BUILD_TYPE: debug
402-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
403328
run: |
404329
sudo sysctl -w vm.mmap_rnd_bits=28
405330
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
406331
./.github/scripts/build.sh
407-
./run_reg_test.py odin_reg_basic -show_failures -j${{ steps.cpu-cores.outputs.count }}
332+
./run_reg_test.py odin_reg_basic -show_failures -j2
408333
409334
410335
VQM2BLIF:
@@ -418,20 +343,13 @@ jobs:
418343
- uses: actions/checkout@v4
419344
with:
420345
submodules: 'true'
421-
422-
- name: Get number of CPU cores
423-
uses: SimenB/github-actions-cpu-cores@v2
424-
id: cpu-cores
425-
426-
- name: Install dependencies
427-
run: ./.github/scripts/install_dependencies.sh
346+
- run: ./.github/scripts/install_dependencies.sh
428347

429348
- uses: hendrikmuhs/[email protected]
430349

431350
- name: Test
432351
env:
433352
BUILD_TYPE: release
434-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
435353
run: |
436354
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
437355
./.github/scripts/build.sh
@@ -460,13 +378,7 @@ jobs:
460378
- uses: actions/checkout@v4
461379
with:
462380
submodules: 'true'
463-
464-
- name: Get number of CPU cores
465-
uses: SimenB/github-actions-cpu-cores@v2
466-
id: cpu-cores
467-
468-
- name: Install dependencies
469-
run: ./.github/scripts/install_dependencies.sh
381+
- run: ./.github/scripts/install_dependencies.sh
470382

471383
- uses: hendrikmuhs/[email protected]
472384

@@ -475,7 +387,6 @@ jobs:
475387
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_ODIN=on"
476388
MATRIX_EVAL: ${{ matrix.eval }}
477389
BUILD_TYPE: release
478-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
479390
run: |
480391
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
481392
./.github/scripts/build.sh
@@ -502,20 +413,13 @@ jobs:
502413
- uses: actions/checkout@v4
503414
with:
504415
submodules: 'true'
505-
506-
- name: Get number of CPU cores
507-
uses: SimenB/github-actions-cpu-cores@v2
508-
id: cpu-cores
509-
510-
- name: Install dependencies
511-
run: ./.github/scripts/install_dependencies.sh
416+
- run: ./.github/scripts/install_dependencies.sh
512417

513418
- uses: hendrikmuhs/[email protected]
514419

515420
- name: Test
516421
env:
517422
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on'
518-
NUM_PROC: ${{ steps.cpu-cores.outputs.count }}
519423
_COVERITY_URL: 'https://scan.coverity.com/download/linux64'
520424
_COVERITY_MD5: 'd0d7d7df9d6609e578f85096a755fb8f'
521425
run: |

0 commit comments

Comments
 (0)