Skip to content

Commit

Permalink
fix ITCN unit access
Browse files Browse the repository at this point in the history
  • Loading branch information
derange-alembic authored and gaomy3832 committed Jul 3, 2020
1 parent 5ae8eeb commit d7b7ac3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nn_dataflow/core/map_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,13 @@ def gen_nested_loop_desc(self):
# Loop occupancies affect accesses.
aocc = [util.prod(data_loops[dce].take(locc))
for dce in range(de.NUM)]
# Replication uses the single DRAM, gbuf, itcn.
for mhe in [me.DRAM, me.GBUF, me.ITCN]:
# Replication uses the single DRAM, gbuf.
for mhe in [me.DRAM, me.GBUF]:
uaccess[mhe] = tuple(a * n * o for a, n, o
in zip(access_unitpass[mhe], rcnt, aocc))
# Itcn access is replicated across all PEs.
uaccess[me.ITCN] = tuple(a * rsz * o for a, o
in zip(access_unitpass[me.ITCN], aocc))
# Replication uses different PEs. regf scales with op replication,
# i.e., affected by all loop occupancies. Also consider external
# occupancy.
Expand Down

0 comments on commit d7b7ac3

Please sign in to comment.