Skip to content

Commit b023841

Browse files
committed
Update Titan download script to support v2.1.0 and new benchmark subdir
1 parent 11ee3a0 commit b023841

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

vtr_flow/scripts/download_titan.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def parse_args():
4646
)
4747

4848
parser.add_argument(
49-
"--titan_version", default="2.0.0", help="Titan release version to download"
49+
"--titan_version", default="2.1.0", help="Titan release version to download"
5050
)
5151
parser.add_argument(
5252
"--vtr_flow_dir",
@@ -198,7 +198,7 @@ def extract_to_vtr_flow_dir(args, tar_gz_filename):
198198
for filename in filenames:
199199
src_file_path = os.path.join(dirpath, filename)
200200
dst_file_path = None
201-
for benchmark_subdir in ["titan_new", "titan23", "other_benchmarks"]:
201+
for benchmark_subdir in get_benchmark_subdirs(args):
202202
if compare_versions(args.titan_version, "2") >= 1:
203203
# if it is a 2.0.0 titan release or later use device family in the benchmark directory
204204
device_families = get_device_families(args)
@@ -252,7 +252,7 @@ def extract_to_vtr_flow_dir(args, tar_gz_filename):
252252

253253

254254
def create_titan_blif_subdirs(titan_benchmarks_extract_dir, args):
255-
for benchmark_subdir in ["titan_new", "titan23", "other_benchmarks"]:
255+
for benchmark_subdir in get_benchmark_subdirs(args):
256256
titan_benchmark_subdir = os.path.join(titan_benchmarks_extract_dir, benchmark_subdir)
257257
if os.path.exists(titan_benchmark_subdir):
258258
shutil.rmtree(titan_benchmark_subdir)
@@ -286,7 +286,7 @@ def determine_sdc_name(dirpath):
286286

287287
def extract_callback(members, args):
288288
for tarinfo in members:
289-
for benchmark_subdir in ["titan_new", "titan23", "other_benchmarks"]:
289+
for benchmark_subdir in get_benchmark_subdirs(args):
290290

291291
if compare_versions(args.titan_version, "2") >= 1:
292292
# if it is a 2.0.0 titan release or later use device family in the benchmark directory
@@ -321,6 +321,15 @@ def extract_callback(members, args):
321321
print(tarinfo.name)
322322
yield tarinfo
323323

324+
def get_benchmark_subdirs(args):
325+
"""
326+
Decide which benchmark subdirectories to use depending on version
327+
"""
328+
if compare_versions(args.titan_version, "2.1.0") >= 1:
329+
# version is 2.1.0 or higher
330+
return ["titanium", "titan23", "other_benchmarks"]
331+
else:
332+
return ["titan_new", "titan23", "other_benchmarks"]
324333

325334
def compare_versions(version1, version2):
326335
"""

vtr_flow/tasks/regression_tests/vtr_reg_nightly_test7/titanium_s10_quick_qor/config/config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
##############################################
99

1010
# Path to directory of circuits to use
11-
circuits_dir=benchmarks/titan_blif/titan_new/stratix10
11+
circuits_dir=benchmarks/titan_blif/titanium/stratix10
1212

1313
# Path to directory of SDCs to use
14-
sdc_dir=benchmarks/titan_blif/titan_new/stratix10
14+
sdc_dir=benchmarks/titan_blif/titanium/stratix10
1515

1616
# Path to directory of architectures to use
1717
archs_dir=arch/titan

vtr_flow/tasks/regression_tests/vtr_reg_nightly_test7/titanium_s10_quick_qor/config/golden_results.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
stratix10_arch.timing.xml DLA_ELT_stratix10_arch_timing.blif common 1353.57 vpr 4.33 GiB 27 12564 0 304 816 0 success v8.0.0-11934-gec23fea1f-dirty release IPO VTR_ASSERT_LEVEL=2 GNU 13.3.0 on Linux-6.8.0-60-generic x86_64 2025-06-05T20:21:45 betzgrp-wintermute /home/talaeikh/vtr-verilog-to-routing/vtr_flow/tasks 4542324 2 25 372871 296321 1 287188 13711 144 107 15408 LAB auto 2358.0 MiB 221.68 -1 2017519 21337611 8631935 12032577 673099 3482.3 MiB 890.12 5.70 13.352 5.508 -175453 -4.508 5.508 0.15 0.686531 0.567356 92.9927 77.679 1998389 6.96148 483283 1.68354 652249 1027683 306084859 67878517 0 0 2.74710e+08 17829.1 14 4580360 48098128 -1 5.528 5.528 -303495 -4.528 0 0 53.94 -1 -1 4122.7 MiB 78.29 121.155 102.612 3482.3 MiB -1 44.89
1414
stratix10_arch.timing.xml DLA_BSC_stratix10_arch_timing.blif common 1339.95 vpr 4.23 GiB 27 12201 0 304 816 0 success v8.0.0-11934-gec23fea1f-dirty release IPO VTR_ASSERT_LEVEL=2 GNU 13.3.0 on Linux-6.8.0-60-generic x86_64 2025-06-05T20:21:45 betzgrp-wintermute /home/talaeikh/vtr-verilog-to-routing/vtr_flow/tasks 4438868 2 25 360006 285376 1 277707 13348 143 106 15158 LAB auto 2300.4 MiB 218.64 -1 1931667 20746063 8408272 11650472 687319 3415.3 MiB 880.58 5.86 14.252 5.554 -177874 -4.554 5.554 0.14 0.679663 0.55934 92.2803 77.1775 1940403 6.99035 478352 1.72328 641973 1026838 318422897 70743295 0 0 2.70680e+08 17857.3 14 4532104 47408547 -1 5.277 5.277 -303851 -4.277 0 0 53.07 -1 -1 4034.5 MiB 79.48 119.709 101.479 3415.3 MiB -1 44.62
1515
stratix10_arch.timing.xml jpeg_deco_stratix10_arch_timing.blif common 1899.59 vpr 13.94 GiB 710 8560 87 145 695 0 success v8.0.0-11934-gec23fea1f-dirty release IPO VTR_ASSERT_LEVEL=2 GNU 13.3.0 on Linux-6.8.0-60-generic x86_64 2025-06-05T20:21:45 betzgrp-wintermute /home/talaeikh/vtr-verilog-to-routing/vtr_flow/tasks 14617052 345 365 232377 210011 2 189277 10197 393 291 114363 io_cell auto 2140.3 MiB 332.36 -1 1582231 14710155 5988614 8068609 652932 14274.5 MiB 544.86 3.72 30.226 7.43057 -365519 -6.43057 3.81627 1.13 0.616545 0.493504 86.2693 69.9258 1673503 8.84207 399915 2.11298 458044 828971 282560507 60747167 0 0 2.08858e+09 18262.7 15 34532852 363579310 -1 6.713 4.00467 -495697 -5.713 0 0 447.46 -1 -1 14274.5 MiB 74.59 113.676 94.0439 14274.5 MiB -1 414.31
16-
stratix10_arch.timing.xml nyuzi_stratix10_arch_timing.blif common 821.73 vpr 1.85 GiB 183 4480 0 96 280 0 success v8.0.0-11934-gec23fea1f-dirty release IPO VTR_ASSERT_LEVEL=2 GNU 13.3.0 on Linux-6.8.0-60-generic x86_64 2025-06-05T20:21:45 betzgrp-wintermute /home/talaeikh/vtr-verilog-to-routing/vtr_flow/tasks 1941748 38 145 99308 91042 1 87410 5039 101 75 7575 io_cell auto 1050.9 MiB 212.52 -1 1052900 4841423 1786900 2873672 180851 1643.9 MiB 186.03 1.45 17.706 9.14244 -196704 -8.14244 9.14244 0.07 0.265592 0.213644 31.8771 25.9929 1432472 16.3889 324137 3.70845 339865 1033948 970326186 299309130 0 0 1.31575e+08 17369.7 106 2069452 22717519 -1 8.601 8.601 -277685 -7.601 0 0 25.47 -1 -1 1784.9 MiB 350.81 87.7588 71.3348 1643.9 MiB -1 19.67
16+
stratix10_arch.timing.xml nyuzi_stratix10_arch_timing.blif common 821.73 vpr 1.85 GiB 183 4480 0 96 245 0 success v8.0.0-11934-gec23fea1f-dirty release IPO VTR_ASSERT_LEVEL=2 GNU 13.3.0 on Linux-6.8.0-60-generic x86_64 2025-06-05T20:21:45 betzgrp-wintermute /home/talaeikh/vtr-verilog-to-routing/vtr_flow/tasks 1941748 38 145 99308 91042 1 87410 5039 101 75 7575 io_cell auto 1050.9 MiB 212.52 -1 1052900 4841423 1786900 2873672 180851 1643.9 MiB 186.03 1.45 17.706 9.14244 -196704 -8.14244 9.14244 0.07 0.265592 0.213644 31.8771 25.9929 1432472 16.3889 324137 3.70845 339865 1033948 970326186 299309130 0 0 1.31575e+08 17369.7 106 2069452 22717519 -1 8.601 8.601 -277685 -7.601 0 0 25.47 -1 -1 1784.9 MiB 350.81 87.7588 71.3348 1643.9 MiB -1 19.67
1717
stratix10_arch.timing.xml sobel_stratix10_arch_timing.blif common 268.17 vpr 3.63 GiB 362 880 0 0 56 0 success v8.0.0-11934-gec23fea1f-dirty release IPO VTR_ASSERT_LEVEL=2 GNU 13.3.0 on Linux-6.8.0-60-generic x86_64 2025-06-05T20:21:45 betzgrp-wintermute /home/talaeikh/vtr-verilog-to-routing/vtr_flow/tasks 3809452 86 276 24975 23587 1 20870 1298 201 149 29949 io_cell auto 521.7 MiB 31.99 -1 129807 779768 259293 456610 63865 3720.2 MiB 15.77 0.15 7.312 5.693 -39200.6 -4.693 5.693 0.18 0.0442955 0.035989 5.25398 4.33257 126953 6.08420 32824 1.57309 46772 73234 21189492 4626331 0 0 5.28462e+08 17645.4 11 8655172 93012966 -1 4.791 4.791 -46924.6 -3.791 0 0 108.60 -1 -1 3720.2 MiB 5.47 7.34669 6.23268 3720.2 MiB -1 92.49

0 commit comments

Comments
 (0)