Skip to content

Commit efc87ec

Browse files
authored
Merge pull request verilog-to-routing#415 from litghost/merge_with_upstream
Merge with latest upstream VPR
2 parents bb0ba83 + 5d9cb3b commit efc87ec

File tree

413 files changed

+34784
-34311
lines changed

Some content is hidden

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

413 files changed

+34784
-34311
lines changed

.git-blame-ignore-revs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
# Autoformat run on 2020-02-03T13:40:40.837294
2+
6042443325f44f054f43600deb6af7c59b526c26
3+
14
# Autoformat run on 2019-05-27T17:22:16.670814
25
d91bc203bf1ae80e6a4371ef7c168886bb536c1c
36

47
# Autoformat run on 2019-07-25T20:04:01.740240
58
80de7854fa5fea9a281df72cbbd2413ae4018c7c
6-
9+

.github/kokoro/continuous/nightly.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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: "**/vpr_stdout.log"
12+
regex: "**/parse_results.txt"
13+
regex: "**/qor_results.txt"
14+
regex: "**/pack.log"
15+
regex: "**/place.log"
16+
regex: "**/route.log"
17+
regex: "**/*_qor.csv"
18+
strip_prefix: "github/vtr-verilog-to-routing/"
19+
}
20+
}
21+
22+
env_vars {
23+
key: "KOKORO_TYPE"
24+
value: "continuous"
25+
}
26+
27+
env_vars {
28+
key: "KOKORO_DIR"
29+
value: "vtr-verilog-to-routing"
30+
}
31+
32+
env_vars {
33+
key: "VTR_DIR"
34+
value: "vtr-verilog-to-routing"
35+
}
36+
37+
env_vars {
38+
key: "VTR_TEST"
39+
value: "vtr_reg_nightly"
40+
}
41+
42+
env_vars {
43+
key: "NUM_CORES"
44+
value: "8"
45+
}

.github/kokoro/continuous/strong.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 1 hour
6+
timeout_mins: 60
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/vpr_stdout.log"
12+
regex: "**/parse_results.txt"
13+
regex: "**/qor_results.txt"
14+
regex: "**/pack.log"
15+
regex: "**/place.log"
16+
regex: "**/route.log"
17+
regex: "**/*_qor.csv"
18+
strip_prefix: "github/vtr-verilog-to-routing/"
19+
}
20+
}
21+
22+
env_vars {
23+
key: "KOKORO_TYPE"
24+
value: "continuous"
25+
}
26+
27+
env_vars {
28+
key: "KOKORO_DIR"
29+
value: "vtr-verilog-to-routing"
30+
}
31+
32+
env_vars {
33+
key: "VTR_DIR"
34+
value: "vtr-verilog-to-routing"
35+
}
36+
37+
env_vars {
38+
key: "VTR_TEST"
39+
value: "vtr_reg_strong"
40+
}
41+
42+
env_vars {
43+
key: "NUM_CORES"
44+
value: "8"
45+
}

.github/kokoro/continuous/weekly.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 5 days
6+
timeout_mins: 18000
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/vpr_stdout.log"
12+
regex: "**/parse_results.txt"
13+
regex: "**/qor_results.txt"
14+
regex: "**/pack.log"
15+
regex: "**/place.log"
16+
regex: "**/route.log"
17+
regex: "**/*_qor.csv"
18+
strip_prefix: "github/vtr-verilog-to-routing/"
19+
}
20+
}
21+
22+
env_vars {
23+
key: "KOKORO_TYPE"
24+
value: "continuous"
25+
}
26+
27+
env_vars {
28+
key: "KOKORO_DIR"
29+
value: "vtr-verilog-to-routing"
30+
}
31+
32+
env_vars {
33+
key: "VTR_DIR"
34+
value: "vtr-verilog-to-routing"
35+
}
36+
37+
env_vars {
38+
key: "VTR_TEST"
39+
value: "vtr_reg_weekly"
40+
}
41+
42+
env_vars {
43+
key: "NUM_CORES"
44+
value: "1"
45+
}

.github/kokoro/presubmit/nightly.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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: "**/vpr_stdout.log"
12+
regex: "**/parse_results.txt"
13+
regex: "**/qor_results.txt"
14+
regex: "**/pack.log"
15+
regex: "**/place.log"
16+
regex: "**/route.log"
17+
regex: "**/*_qor.csv"
18+
strip_prefix: "github/vtr-verilog-to-routing/"
19+
}
20+
}
21+
22+
env_vars {
23+
key: "KOKORO_TYPE"
24+
value: "presubmit"
25+
}
26+
27+
env_vars {
28+
key: "KOKORO_DIR"
29+
value: "vtr-verilog-to-routing"
30+
}
31+
32+
env_vars {
33+
key: "VTR_DIR"
34+
value: "vtr-verilog-to-routing"
35+
}
36+
37+
env_vars {
38+
key: "VTR_TEST"
39+
value: "vtr_reg_nightly"
40+
}
41+
42+
env_vars {
43+
key: "NUM_CORES"
44+
value: "8"
45+
}

.github/kokoro/presubmit/strong.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 1 hour
6+
timeout_mins: 60
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/vpr_stdout.log"
12+
regex: "**/parse_results.txt"
13+
regex: "**/qor_results.txt"
14+
regex: "**/pack.log"
15+
regex: "**/place.log"
16+
regex: "**/route.log"
17+
regex: "**/*_qor.csv"
18+
strip_prefix: "github/vtr-verilog-to-routing/"
19+
}
20+
}
21+
22+
env_vars {
23+
key: "KOKORO_TYPE"
24+
value: "presubmit"
25+
}
26+
27+
env_vars {
28+
key: "KOKORO_DIR"
29+
value: "vtr-verilog-to-routing"
30+
}
31+
32+
env_vars {
33+
key: "VTR_DIR"
34+
value: "vtr-verilog-to-routing"
35+
}
36+
37+
env_vars {
38+
key: "VTR_TEST"
39+
value: "vtr_reg_strong"
40+
}
41+
42+
env_vars {
43+
key: "NUM_CORES"
44+
value: "8"
45+
}

.github/kokoro/presubmit/weekly.cfg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
build_file: "vtr-verilog-to-routing/.github/kokoro/run-vtr.sh"
4+
5+
# 5 days
6+
timeout_mins: 18000
7+
8+
action {
9+
define_artifacts {
10+
# File types
11+
regex: "**/vpr_stdout.log"
12+
regex: "**/parse_results.txt"
13+
regex: "**/qor_results.txt"
14+
regex: "**/pack.log"
15+
regex: "**/place.log"
16+
regex: "**/route.log"
17+
regex: "**/*_qor.csv"
18+
strip_prefix: "github/vtr-verilog-to-routing/"
19+
}
20+
}
21+
22+
env_vars {
23+
key: "KOKORO_TYPE"
24+
value: "presubmit"
25+
}
26+
27+
env_vars {
28+
key: "KOKORO_DIR"
29+
value: "vtr-verilog-to-routing"
30+
}
31+
32+
env_vars {
33+
key: "VTR_DIR"
34+
value: "vtr-verilog-to-routing"
35+
}
36+
37+
env_vars {
38+
key: "VTR_TEST"
39+
value: "vtr_reg_weekly"
40+
}
41+
42+
env_vars {
43+
key: "NUM_CORES"
44+
value: "1"
45+
}

.github/kokoro/run-vtr.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4+
5+
set -x
6+
set -e
7+
8+
# Set up the host
9+
source $SCRIPT_DIR/steps/hostsetup.sh
10+
source $SCRIPT_DIR/steps/hostinfo.sh
11+
12+
# Output git information
13+
ls -l
14+
cd github
15+
ls -l
16+
cd vtr-verilog-to-routing
17+
source $SCRIPT_DIR/steps/git.sh
18+
19+
if [ $VTR_TEST == "vtr_reg_strong" ]; then
20+
source $SCRIPT_DIR/steps/vtr-min-setup.sh
21+
else
22+
source $SCRIPT_DIR/steps/vtr-full-setup.sh
23+
fi
24+
25+
# Build VtR
26+
source $SCRIPT_DIR/steps/vtr-build.sh
27+
# Run the reg test.
28+
source $SCRIPT_DIR/steps/vtr-test.sh

.github/kokoro/steps/git.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
echo
6+
echo "========================================"
7+
echo "Git log"
8+
echo "----------------------------------------"
9+
git log -n5 --stat
10+
echo "----------------------------------------"
11+
12+
echo
13+
echo "========================================"
14+
echo "Git fetching tags"
15+
echo "----------------------------------------"
16+
# Don't fail if there are no tags
17+
git fetch --tags || true
18+
echo "----------------------------------------"
19+
20+
echo
21+
echo "========================================"
22+
echo "Git version info"
23+
echo "----------------------------------------"
24+
git log -n1
25+
echo "----------------------------------------"
26+
git describe --tags || true
27+
echo "----------------------------------------"
28+
git describe --tags --always || true
29+
echo "----------------------------------------"

.github/kokoro/steps/hostinfo.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
echo
6+
echo "========================================"
7+
echo "Host Environment"
8+
echo "----------------------------------------"
9+
export
10+
echo "----------------------------------------"
11+
12+
echo
13+
echo "========================================"
14+
echo "Host CPU"
15+
echo "----------------------------------------"
16+
export CORES=$(nproc --all)
17+
echo "Cores: $CORES"
18+
echo
19+
echo "Memory"
20+
echo "----------------------------------------"
21+
cat /proc/meminfo
22+
echo "----------------------------------------"
23+
export MEM_GB=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo)/(1024*1024)))
24+
echo "Memory (GB): $CORES"
25+
export MEM_CORES=$(($MEM_GB/4))
26+
echo "Cores (4 GB per): $MEM_CORES"
27+
export MAX_CORES_NO_MIN=$(($MEM_CORES>$CORES?$CORES:$MEM_CORES))
28+
export MAX_CORES=$(($MAX_CORES_NO_MIN<1?1:$MAX_CORES_NO_MIN))
29+
echo "Max cores: $MAX_CORES"
30+
echo "----------------------------------------"
31+
echo "Process limits:"
32+
echo "----------------------------------------"
33+
ulimit -a
34+
echo "----------------------------------------"

0 commit comments

Comments
 (0)