Skip to content

Commit

Permalink
Set memory usage.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Ansell <[email protected]>
  • Loading branch information
mithro committed Jan 3, 2024
1 parent ccac96b commit 11f958c
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 0 deletions.
24 changes: 24 additions & 0 deletions benchmarks/basic/add/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
),
Expand All @@ -65,6 +68,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -86,6 +92,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -107,6 +116,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -128,6 +140,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
),
Expand All @@ -148,6 +163,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -169,6 +187,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -190,6 +211,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand Down
24 changes: 24 additions & 0 deletions benchmarks/basic/and/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
),
Expand All @@ -65,6 +68,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -86,6 +92,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -107,6 +116,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -128,6 +140,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
),
Expand All @@ -148,6 +163,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -169,6 +187,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -190,6 +211,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand Down
6 changes: 6 additions & 0 deletions benchmarks/basic/genbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@
die_width_microns = {PDK_CONFIG['pnr']['die_width_microns']},
sdc = "@rules_hdl//benchmarks/basic:common/{PDK_NAME}.sdc",
skip_detailed_routing = {PDK_CONFIG['pnr']['skip_detailed_routing']},
exec_properties = dict(
mem = '6g',
),
),
),
target = ":rtl",
Expand All @@ -160,6 +163,9 @@
core_padding_microns = {PDK_CONFIG['pnr']['core_padding_microns']},
die_height_microns = {PDK_CONFIG['pnr']['die_height_microns']},
die_width_microns = {PDK_CONFIG['pnr']['die_width_microns']},
exec_properties = dict(
mem = '6g',
),
),
),
target = ":rtl",
Expand Down
24 changes: 24 additions & 0 deletions benchmarks/basic/mul/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
),
Expand All @@ -65,6 +68,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -86,6 +92,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -107,6 +116,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -128,6 +140,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
),
Expand All @@ -148,6 +163,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -169,6 +187,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -190,6 +211,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand Down
24 changes: 24 additions & 0 deletions benchmarks/basic/xand/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
),
Expand All @@ -65,6 +68,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -86,6 +92,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -107,6 +116,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 400,
die_width_microns = 400,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/asap7.sdc",
skip_detailed_routing = False,
Expand All @@ -128,6 +140,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
),
Expand All @@ -148,6 +163,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.straight.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -169,6 +187,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.loopback.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand All @@ -190,6 +211,9 @@ build_test(
core_padding_microns = 2,
die_height_microns = 200,
die_width_microns = 100,
exec_properties = dict(
mem = "6g",
),
manual_placement_script = "@rules_hdl//benchmarks/basic:common/place.diagonal.tcl",
sdc = "@rules_hdl//benchmarks/basic:common/sky130.sdc",
skip_detailed_routing = False,
Expand Down

0 comments on commit 11f958c

Please sign in to comment.