Skip to content

Commit d337fde

Browse files
committed
1 parent 2e3939c commit d337fde

File tree

255 files changed

+4212
-1624
lines changed

Some content is hidden

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

255 files changed

+4212
-1624
lines changed

.github/gha/install_dependencies.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@ sudo apt install -y \
3535
zip \
3636
qt5-default \
3737
clang-format-7 \
38-
g++-5 \
39-
gcc-5 \
40-
g++-6 \
41-
gcc-6 \
4238
g++-7 \
4339
gcc-7 \
4440
g++-8 \
4541
gcc-8 \
4642
g++-9 \
4743
gcc-9 \
44+
g++-10 \
45+
gcc-10 \
46+
g++-11 \
47+
gcc-11 \
4848
clang-6.0 \
49-
clang-8
49+
clang-7 \
50+
clang-10
5051
# libtbb-dev

.github/kokoro/presubmit/nightly.cfg renamed to .github/kokoro/presubmit/nightly_test1.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ env_vars {
5151

5252
env_vars {
5353
key: "VTR_TEST"
54-
value: "vtr_reg_nightly"
54+
value: "vtr_reg_nightly_test1"
5555
}
5656

5757
#Options for run_reg_test.py
@@ -63,5 +63,5 @@ env_vars {
6363

6464
env_vars {
6565
key: "NUM_CORES"
66-
value: "3"
66+
value: "8"
6767
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 72 hours
6+
timeout_mins: 4320
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/*.out"
12+
regex: "**/vpr_stdout.log"
13+
regex: "**/parse_results.txt"
14+
regex: "**/qor_results.txt"
15+
regex: "**/pack.log"
16+
regex: "**/place.log"
17+
regex: "**/route.log"
18+
regex: "**/*_qor.csv"
19+
regex: "**/*.out.gz"
20+
regex: "**/vpr_stdout.log.gz"
21+
regex: "**/parse_results.txt.gz"
22+
regex: "**/qor_results.txt.gz"
23+
regex: "**/pack.log.gz"
24+
regex: "**/place.log.gz"
25+
regex: "**/route.log.gz"
26+
regex: "**/*_qor.csv.gz"
27+
strip_prefix: "github/vtr-verilog-to-routing/"
28+
}
29+
}
30+
31+
env_vars {
32+
key: "KOKORO_TYPE"
33+
value: "presubmit"
34+
}
35+
36+
env_vars {
37+
key: "KOKORO_DIR"
38+
value: "vtr-verilog-to-routing"
39+
}
40+
41+
env_vars {
42+
key: "VTR_DIR"
43+
value: "vtr-verilog-to-routing"
44+
}
45+
46+
#Use default build configuration
47+
env_vars {
48+
key: "VTR_CMAKE_PARAMS"
49+
value: ""
50+
}
51+
52+
env_vars {
53+
key: "VTR_TEST"
54+
value: "vtr_reg_nightly_test2"
55+
}
56+
57+
#Options for run_reg_test.py
58+
# -show_failures: show tool failures in main log output
59+
env_vars {
60+
key: "VTR_TEST_OPTIONS"
61+
value: "-show_failures"
62+
}
63+
64+
env_vars {
65+
key: "NUM_CORES"
66+
value: "8"
67+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 72 hours
6+
timeout_mins: 4320
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/*.out"
12+
regex: "**/vpr_stdout.log"
13+
regex: "**/parse_results.txt"
14+
regex: "**/qor_results.txt"
15+
regex: "**/pack.log"
16+
regex: "**/place.log"
17+
regex: "**/route.log"
18+
regex: "**/*_qor.csv"
19+
regex: "**/*.out.gz"
20+
regex: "**/vpr_stdout.log.gz"
21+
regex: "**/parse_results.txt.gz"
22+
regex: "**/qor_results.txt.gz"
23+
regex: "**/pack.log.gz"
24+
regex: "**/place.log.gz"
25+
regex: "**/route.log.gz"
26+
regex: "**/*_qor.csv.gz"
27+
strip_prefix: "github/vtr-verilog-to-routing/"
28+
}
29+
}
30+
31+
env_vars {
32+
key: "KOKORO_TYPE"
33+
value: "presubmit"
34+
}
35+
36+
env_vars {
37+
key: "KOKORO_DIR"
38+
value: "vtr-verilog-to-routing"
39+
}
40+
41+
env_vars {
42+
key: "VTR_DIR"
43+
value: "vtr-verilog-to-routing"
44+
}
45+
46+
#Use default build configuration
47+
env_vars {
48+
key: "VTR_CMAKE_PARAMS"
49+
value: ""
50+
}
51+
52+
env_vars {
53+
key: "VTR_TEST"
54+
value: "vtr_reg_nightly_test3"
55+
}
56+
57+
#Options for run_reg_test.py
58+
# -show_failures: show tool failures in main log output
59+
env_vars {
60+
key: "VTR_TEST_OPTIONS"
61+
value: "-show_failures"
62+
}
63+
64+
env_vars {
65+
key: "NUM_CORES"
66+
value: "8"
67+
}

.github/kokoro/steps/vtr-test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ find vtr_flow/benchmarks/titan_blif/ -type f -not -name 'README.*' -delete
6969
find . -type f -regex ".*\.tar\.\(gz\|xz\)" -delete
7070

7171
#Gzip output files from vtr_reg_nightly tests to lower working directory disk space
72-
find vtr_flow/tasks/regression_tests/vtr_reg_nightly/ -type f -print0 | xargs -0 -P $(nproc) gzip
72+
find vtr_flow/tasks/regression_tests/vtr_reg_nightly_test1/ -type f -print0 | xargs -0 -P $(nproc) gzip
73+
find vtr_flow/tasks/regression_tests/vtr_reg_nightly_test2/ -type f -print0 | xargs -0 -P $(nproc) gzip
74+
find vtr_flow/tasks/regression_tests/vtr_reg_nightly_test3/ -type f -print0 | xargs -0 -P $(nproc) gzip
75+
7376

7477
# Make sure working directory doesn't exceed disk space limit!
7578
echo "Working directory size: $(du -sh)"

.github/travis/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $SPACER
77

88
start_section "vtr.build" "${GREEN}Building..${NC}"
99
export FAILURE=0
10-
make -k BUILD_TYPE=${BUILD_TYPE} CMAKE_PARAMS="${CMAKE_PARAMS} ${CMAKE_INSTALL_PREFIX_PARAMS}" -j2 || export FAILURE=1
10+
make -k BUILD_TYPE=${BUILD_TYPE} CMAKE_PARAMS="-Werror=dev ${CMAKE_PARAMS} ${CMAKE_INSTALL_PREFIX_PARAMS}" -j2 || export FAILURE=1
1111
end_section "vtr.build"
1212

1313
# When the build fails, produce the failure output in a clear way

.github/travis/setup.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
- cron: '0 0 * * 0' # weekly
99

1010
env:
11-
MATRIX_EVAL: "CC=gcc-6 && CXX=g++-6"
11+
# default compiler for all non-compatibility tests
12+
MATRIX_EVAL: "CC=gcc-11 && CXX=g++-11"
1213

1314
jobs:
1415

@@ -27,13 +28,10 @@ jobs:
2728

2829
- name: Test
2930
env:
30-
MATRIX_EVAL: "CC=gcc-6 && CXX=g++-6"
3131
BUILD_TYPE: release
3232
run: |
3333
source .github/travis/common.sh
34-
./.github/travis/setup.sh
3534
./.github/travis/build.sh
36-
./.github/travis/setup.sh
3735
3836
3937
Format:
@@ -58,9 +56,7 @@ jobs:
5856
- name: Test
5957
run: |
6058
source .github/travis/common.sh
61-
./.github/travis/setup.sh
6259
./dev/${{ matrix.script }}
63-
./.github/travis/setup.sh
6460
6561
6662
UniTests:
@@ -78,13 +74,10 @@ jobs:
7874
- name: Test
7975
env:
8076
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
81-
MATRIX_EVAL: "CC=gcc-5 && CXX=g++-5"
8277
run: |
8378
source .github/travis/common.sh
84-
./.github/travis/setup.sh
8579
./.github/travis/build.sh
8680
./.github/travis/unittest.sh
87-
./.github/travis/setup.sh
8881
8982
9083
Warnings:
@@ -104,12 +97,9 @@ jobs:
10497
#In order to get compilation warnings produced per source file, we must do a non-IPO build
10598
#We also turn warnings into errors for this target by doing a strict compile
10699
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_STRICT_COMPILE=on -DVTR_IPO_BUILD=off"
107-
MATRIX_EVAL: "CC=gcc-5 && CXX=g++-5"
108100
run: |
109101
source .github/travis/common.sh
110-
./.github/travis/setup.sh
111102
./.github/travis/build.sh
112-
./.github/travis/setup.sh
113103
114104
115105
Regression:
@@ -157,13 +147,10 @@ jobs:
157147
- name: Test
158148
env:
159149
CMAKE_PARAMS: ${{ matrix.params }}
160-
MATRIX_EVAL: "CC=gcc-5 && CXX=g++-5"
161150
run: |
162151
source .github/travis/common.sh
163-
./.github/travis/setup.sh
164152
./.github/travis/build.sh
165153
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2
166-
./.github/travis/setup.sh
167154
168155
169156
Sanitized:
@@ -187,16 +174,13 @@ jobs:
187174
- name: Test
188175
env:
189176
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on'
190-
MATRIX_EVAL: "CC=gcc-5 && CXX=g++-5"
191177
BUILD_TYPE: debug
192178
LSAN_OPTIONS: 'exitcode=42' #Use a non-standard exit code to ensure LSAN errors are detected
193179
run: |
194180
source .github/travis/common.sh
195-
./.github/travis/setup.sh
196181
./.github/travis/build.sh
197182
# We skip QoR since we are only checking for errors in sanitizer runs
198183
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2 -skip_qor
199-
./.github/travis/setup.sh
200184
201185
ODINII:
202186
name: 'ODIN-II Basic Tests'
@@ -213,14 +197,11 @@ jobs:
213197
- name: Test
214198
env:
215199
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on'
216-
MATRIX_EVAL: 'CC=gcc-5 && CXX=g++-5'
217200
BUILD_TYPE: debug
218201
run: |
219202
source .github/travis/common.sh
220-
./.github/travis/setup.sh
221203
./.github/travis/build.sh
222204
./run_reg_test.py odin_reg_basic -show_failures -j2
223-
./.github/travis/setup.sh
224205
225206
226207
Compatibility:
@@ -229,13 +210,14 @@ jobs:
229210
fail-fast: false
230211
matrix:
231212
include:
232-
- { name: 'GCC 5 (Ubuntu Xenial - 16.04)', eval: 'CC=gcc-5 && CXX=g++-5', build: 'release_strict' }
233-
- { name: 'GCC 6 (Debian Stretch)', eval: 'CC=gcc-6 && CXX=g++-6', build: 'release_strict' }
234213
- { name: 'GCC 7 (Ubuntu Bionic - 18.04)', eval: 'CC=gcc-7 && CXX=g++-7', build: '' }
235-
- { name: 'GCC 9 (Latest Release)', eval: 'CC=gcc-9 && CXX=g++-9', build: '' }
236-
- { name: 'GCC 8 (Ubuntu Latest)', eval: 'CC=gcc-8 && CXX=g++-8', build: '' }
237-
- { name: 'Clang 6 (Debian + Ubuntu common)', eval: 'CC=clang-6.0 && CXX=clang++-6.0', build: '' }
238-
- { name: 'Clang 8 (Latest Release)', eval: 'CC=clang-8 && CXX=clang++-8', build: '' }
214+
- { name: 'GCC 8 (Debian Buster)', eval: 'CC=gcc-8 && CXX=g++-8', build: '' }
215+
- { name: 'GCC 9 (Ubuntu Focal - 20.04)', eval: 'CC=gcc-9 && CXX=g++-9', build: '' }
216+
- { name: 'GCC 10 (Ubuntu Hirsute - 21.04)', eval: 'CC=gcc-10 && CXX=g++-10', build: '' }
217+
- { name: 'GCC 11 (Latest)', eval: 'CC=gcc-11 && CXX=g++-11', build: '' }
218+
- { name: 'Clang 6 (Ubuntu Bionic - 18.04)', eval: 'CC=clang-6.0 && CXX=clang++-6.0', build: '' }
219+
- { name: 'Clang 7 (Debian Buster)', eval: 'CC=clang-7 && CXX=clang++-7', build: '' }
220+
- { name: 'Clang 10 (Ubuntu Focal - 20.04)', eval: 'CC=clang-10 && CXX=clang++-10', build: '' }
239221
name: 'B: ${{ matrix.name }}'
240222
steps:
241223

@@ -253,9 +235,7 @@ jobs:
253235
BUILD_TYPE: ${{ matrix.build }}
254236
run: |
255237
source .github/travis/common.sh
256-
./.github/travis/setup.sh
257238
./.github/travis/build.sh
258-
./.github/travis/setup.sh
259239
260240
261241
Coverity:
@@ -282,11 +262,8 @@ jobs:
282262
- name: Test
283263
env:
284264
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on'
285-
MATRIX_EVAL: 'CC=gcc-6 && CXX=g++-6'
286265
_COVERITY_URL: 'https://scan.coverity.com/download/linux64'
287266
_COVERITY_MD5: 'd0d7d7df9d6609e578f85096a755fb8f'
288267
run: |
289268
source .github/travis/common.sh
290-
./.github/travis/setup.sh
291269
./.github/travis/build.sh
292-
./.github/travis/setup.sh

0 commit comments

Comments
 (0)