Skip to content

Commit

Permalink
HW to add SBs to North I/O tiles; working lopsided CGRA (with hacks)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoduoza committed Dec 7, 2024
1 parent b7a3cbd commit 3c721b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions aha/util/regress.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def gen_garnet(width, height, dense_only=False, using_matrix_unit=False, mu_data
buildkite_args.append("--using-matrix-unit")
buildkite_args.append("--mu-datawidth")
buildkite_args.append(str(mu_datawidth))
buildkite_args.append("--give-north-io-sbs")

buildkite_call(buildkite_args)

Expand Down Expand Up @@ -133,6 +134,7 @@ def generate_sparse_bitstreams(sparse_tests, width, height, seed_flow, data_tile
build_tb_cmd.append("--opal-workaround")
if using_matrix_unit:
build_tb_cmd.append("--using-matrix-unit")
build_tb_cmd.append("--give-north-io-sbs")
buildkite_call(
build_tb_cmd,
env=env_vars,
Expand Down Expand Up @@ -166,6 +168,7 @@ def generate_sparse_bitstreams(sparse_tests, width, height, seed_flow, data_tile
build_tb_cmd.append("--opal-workaround")
if using_matrix_unit:
build_tb_cmd.append("--using-matrix-unit")
build_tb_cmd.append("--give-north-io-sbs")
buildkite_call(
build_tb_cmd,
env=env_vars,
Expand Down Expand Up @@ -342,7 +345,8 @@ def test_dense_app(test, width, height, env_parameters, extra_args, layer=None,

if using_matrix_unit:
buildkite_args.append("--using-matrix-unit")
env_vars["WEST_IN_IO_SIDES"] = "1"
buildkite_args.append("--give-north-io-sbs")
#env_vars["WEST_IN_IO_SIDES"] = "1"
env_vars["USING_MATRIX_UNIT"] = "1"
env_vars["OC_0"] = str(2*cgra_height)
env_vars["MU_DATAWIDTH"] = str(mu_datawidth)
Expand Down Expand Up @@ -431,6 +435,7 @@ def test_hardcoded_dense_app(test, width, height, env_parameters, extra_args, la

if using_matrix_unit:
buildkite_args.append("--using-matrix-unit")
buildkite_args.append("--give-north-io-sbs")
env_vars["WEST_IN_IO_SIDES"] = "1"
env_vars["USING_MATRIX_UNIT"] = "1"
env_vars["OC_0"] = str(2*cgra_height)
Expand Down Expand Up @@ -619,4 +624,4 @@ def dispatch(args, extra_args=None):


def gather_tests(tags):
pass
pass
2 changes: 1 addition & 1 deletion canal
2 changes: 1 addition & 1 deletion garnet

0 comments on commit 3c721b2

Please sign in to comment.