Skip to content

Commit 898fdd5

Browse files
Merge branch 'master' into round_comp_loc
2 parents ba66b12 + 05a774c commit 898fdd5

File tree

236 files changed

+7672
-2827
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+7672
-2827
lines changed

.github/scripts/install_dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ sudo apt install -y \
2929
libncurses5-dev \
3030
libx11-dev \
3131
libxft-dev \
32+
libxml2-utils \
3233
libxml++2.6-dev \
3334
libreadline-dev \
3435
tcllib \

.github/workflows/containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717

1818
- name: 🧰 Repository Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
submodules: 'true'
2222

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
triage:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- uses: actions/labeler@master
1111
with:
1212
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/test.yml

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151

5252
steps:
5353

54+
# TODO: This runnner is running on a self-hosted CPU. In order to upgrade
55+
# to v4, need to upgrade the machine to support node20.
5456
- uses: actions/checkout@v3
5557
with:
5658
submodules: 'true'
@@ -71,9 +73,12 @@ jobs:
7173
VTR_CMAKE_PARAMS: ${{ matrix.cmake }}
7274
NUM_CORES: ${{ matrix.cores }}
7375

74-
- uses: actions/upload-artifact@v3
75-
if: ${{ always() }}
76+
- name: Upload test results
77+
# TODO: This runnner is running on a self-hosted CPU. In order to upgrade
78+
# to v4, need to upgrade the machine to support node20.
79+
uses: actions/upload-artifact@v3
7680
with:
81+
name: ${{matrix.test}}_test_results
7782
path: |
7883
**/results*.gz
7984
**/plot_*.svg
@@ -92,10 +97,10 @@ jobs:
9297
- { build_type: 'debug', verbose: '1' }
9398
steps:
9499

95-
- uses: actions/setup-python@v4
100+
- uses: actions/setup-python@v5
96101
with:
97102
python-version: 3.10.10
98-
- uses: actions/checkout@v3
103+
- uses: actions/checkout@v4
99104
with:
100105
submodules: 'true'
101106
- run: ./.github/scripts/install_dependencies.sh
@@ -122,10 +127,10 @@ jobs:
122127
name: 'F: ${{ matrix.name }}'
123128
steps:
124129

125-
- uses: actions/setup-python@v4
130+
- uses: actions/setup-python@v5
126131
with:
127132
python-version: 3.10.10
128-
- uses: actions/checkout@v3
133+
- uses: actions/checkout@v4
129134
- run: ./.github/scripts/install_dependencies.sh
130135

131136
- name: Test
@@ -137,10 +142,10 @@ jobs:
137142
runs-on: ubuntu-22.04
138143
steps:
139144

140-
- uses: actions/setup-python@v4
145+
- uses: actions/setup-python@v5
141146
with:
142147
python-version: 3.10.10
143-
- uses: actions/checkout@v3
148+
- uses: actions/checkout@v4
144149
with:
145150
submodules: 'true'
146151
- run: ./.github/scripts/install_dependencies.sh
@@ -156,10 +161,10 @@ jobs:
156161
runs-on: ubuntu-22.04
157162
steps:
158163

159-
- uses: actions/setup-python@v4
164+
- uses: actions/setup-python@v5
160165
with:
161166
python-version: 3.10.10
162-
- uses: actions/checkout@v3
167+
- uses: actions/checkout@v4
163168
with:
164169
submodules: 'true'
165170
- run: ./.github/scripts/install_dependencies.sh
@@ -184,57 +189,62 @@ jobs:
184189
include: [
185190
{
186191
name: 'Basic',
187-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
192+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
188193
suite: 'vtr_reg_basic'
189194
},
190195
{
191196
name: 'Basic_odin',
192-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
197+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
193198
suite: 'vtr_reg_basic_odin'
194199
},
195200
{
196201
name: 'Basic with NO_GRAPHICS',
197-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=off',
202+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=off',
203+
suite: 'vtr_reg_basic'
204+
},
205+
{
206+
name: 'Basic with NO_SERVER',
207+
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVPR_USE_EZGL=on -DVPR_USE_SERVER=off',
198208
suite: 'vtr_reg_basic'
199209
},
200210
{
201211
name: 'Basic with CAPNPROTO disabled',
202-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_CAPNPROTO=off',
212+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_CAPNPROTO=off',
203213
suite: 'vtr_reg_basic'
204214
},
205215
{
206216
name: 'Basic with VTR_ENABLE_DEBUG_LOGGING',
207-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_DEBUG_LOGGING=on',
217+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_DEBUG_LOGGING=on',
208218
suite: 'vtr_reg_basic'
209219
},
210220
{
211221
name: 'Basic_odin with VTR_ENABLE_DEBUG_LOGGING',
212-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_DEBUG_LOGGING=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
222+
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',
213223
suite: 'vtr_reg_basic_odin'
214224
},
215225
{
216226
name: 'Strong',
217-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
227+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
218228
suite: 'vtr_reg_strong'
219229
},
220230
{
221231
name: 'Strong_odin',
222-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
232+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
223233
suite: 'vtr_reg_strong_odin'
224234
},
225235
{
226236
name: 'Valgrind Memory',
227-
params: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_ODIN=on',
237+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_ODIN=on',
228238
suite: 'vtr_reg_valgrind_small'
229239
}
230240
]
231241
name: 'R: ${{ matrix.name }}'
232242
steps:
233243

234-
- uses: actions/setup-python@v4
244+
- uses: actions/setup-python@v5
235245
with:
236246
python-version: 3.10.10
237-
- uses: actions/checkout@v3
247+
- uses: actions/checkout@v4
238248
with:
239249
submodules: 'true'
240250
- run: ./.github/scripts/install_dependencies.sh
@@ -250,7 +260,7 @@ jobs:
250260
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2
251261
252262
- name: Upload regression run files
253-
uses: actions/upload-artifact@v3
263+
uses: actions/upload-artifact@v4
254264
with:
255265
name: ${{matrix.name}}_run_files
256266
path: |
@@ -261,7 +271,7 @@ jobs:
261271
vtr_flow/**/*.r
262272
263273
- name: Upload regression results
264-
uses: actions/upload-artifact@v3
274+
uses: actions/upload-artifact@v4
265275
with:
266276
name: ${{matrix.name}}_results
267277
path: |
@@ -286,10 +296,10 @@ jobs:
286296
name: 'S: ${{ matrix.name }}'
287297
steps:
288298

289-
- uses: actions/setup-python@v4
299+
- uses: actions/setup-python@v5
290300
with:
291301
python-version: 3.10.10
292-
- uses: actions/checkout@v3
302+
- uses: actions/checkout@v4
293303
with:
294304
submodules: 'true'
295305

@@ -320,10 +330,10 @@ jobs:
320330
runs-on: ubuntu-22.04
321331
steps:
322332

323-
- uses: actions/setup-python@v4
333+
- uses: actions/setup-python@v5
324334
with:
325335
python-version: 3.10.10
326-
- uses: actions/checkout@v3
336+
- uses: actions/checkout@v4
327337
with:
328338
submodules: 'true'
329339
- run: ./.github/scripts/install_dependencies.sh
@@ -345,10 +355,10 @@ jobs:
345355
runs-on: ubuntu-22.04
346356
steps:
347357

348-
- uses: actions/setup-python@v4
358+
- uses: actions/setup-python@v5
349359
with:
350360
python-version: 3.10.10
351-
- uses: actions/checkout@v3
361+
- uses: actions/checkout@v4
352362
with:
353363
submodules: 'true'
354364
- run: ./.github/scripts/install_dependencies.sh
@@ -371,10 +381,10 @@ jobs:
371381
runs-on: ubuntu-22.04
372382
steps:
373383

374-
- uses: actions/setup-python@v4
384+
- uses: actions/setup-python@v5
375385
with:
376386
python-version: 3.10.10
377-
- uses: actions/checkout@v3
387+
- uses: actions/checkout@v4
378388
with:
379389
submodules: 'true'
380390
- run: ./.github/scripts/install_dependencies.sh
@@ -406,10 +416,10 @@ jobs:
406416
name: 'B: ${{ matrix.name }}'
407417
steps:
408418

409-
- uses: actions/setup-python@v4
419+
- uses: actions/setup-python@v5
410420
with:
411421
python-version: 3.10.10
412-
- uses: actions/checkout@v3
422+
- uses: actions/checkout@v4
413423
with:
414424
submodules: 'true'
415425
- run: ./.github/scripts/install_dependencies.sh
@@ -442,10 +452,10 @@ jobs:
442452
runs-on: ubuntu-22.04
443453
steps:
444454

445-
- uses: actions/setup-python@v4
455+
- uses: actions/setup-python@v5
446456
with:
447457
python-version: 3.10.10
448-
- uses: actions/checkout@v3
458+
- uses: actions/checkout@v4
449459
with:
450460
submodules: 'true'
451461
- run: ./.github/scripts/install_dependencies.sh

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[submodule "libs/EXTERNAL/libcatch2"]
22
path = libs/EXTERNAL/libcatch2
33
url = https://github.com/catchorg/Catch2.git
4+
[submodule "libs/EXTERNAL/sockpp"]
5+
path = libs/EXTERNAL/sockpp
6+
#url = [email protected]:fpagliughi/sockpp.git
7+
url = [email protected]:w0lek/sockpp.git # fork where in branch v1.0.0_no_complication_warnings there are compilation warnings fixes for upstream tag v1.0.0 of sockpp

CMakeLists.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ set(VPR_USE_EZGL "auto" CACHE STRING "Specify whether vpr uses the graphics libr
3939
set_property(CACHE VPR_USE_EZGL PROPERTY STRINGS auto off on)
4040
option(VTR_ENABLE_CAPNPROTO "Enable capnproto binary serialization support in VPR." ON)
4141

42+
#Allow the user to decide whether to compile the server module
43+
option(VPR_USE_SERVER "Specify whether vpr enables the server mode" ON)
44+
4245
#Allow the user to enable/disable VPR analytic placement
4346
#VPR option --enable_analytic_placer is also required for Analytic Placement
4447
option(VPR_ANALYTIC_PLACE "Enable analytic placement in VPR." ON)
@@ -418,11 +421,13 @@ if(${WITH_PARMYS}) # define cmake params to compile Yosys
418421
set(MAKE_PROGRAM "make")
419422
endif()
420423

421-
if(NOT DEFINED "${CMAKE_BUILD_PARALLEL_LEVEL}")
422-
set(CUSTOM_BUILD_PARALLEL_LEVEL 16)
423-
else()
424-
set(CUSTOM_BUILD_PARALLEL_LEVEL "${CMAKE_BUILD_PARALLEL_LEVEL}")
425-
endif()
424+
# Commented out since a make file should not call another make command with
425+
# threads. It should pass this information from the parent automatically.
426+
# if(NOT DEFINED "${CMAKE_BUILD_PARALLEL_LEVEL}")
427+
# set(CUSTOM_BUILD_PARALLEL_LEVEL 16)
428+
# else()
429+
# set(CUSTOM_BUILD_PARALLEL_LEVEL "${CMAKE_BUILD_PARALLEL_LEVEL}")
430+
# endif()
426431
add_subdirectory(yosys)
427432
endif()
428433

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22
ARG DEBIAN_FRONTEND=noninteractive
33
# set out workspace
44
ENV WORKSPACE=/workspace
@@ -19,6 +19,7 @@ RUN apt-get update -qq \
1919
libtbb-dev \
2020
python3-pip \
2121
git \
22+
time \
2223
# Install python packages
2324
&& pip install -r requirements.txt \
2425
# Cleanup

0 commit comments

Comments
 (0)