-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified mapper to handle disconnected lif components connected to sa… #294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Yash,
It seems like you are replacing l_addr.core_id
in map_cores()
and _set_virtual_address_nc()
with self.mapper_core_offset
that starts at 0 and is incriminated after each use, and kept track of in self.mapper_core_dict
.
Later chip_idx
and core_idx
are calculated based on this replaced value and used in initialization of NcVirtualAddress
:
chip_idx = l_addr.core_id // num_cores
core_idx = l_addr.core_id % num_cores
It's not clear to me if l_addr.core_id
is entirely arbitrary and can be replaced with an arbitrary value. Can you explain the reasoning behind this?
l_addr.core_id is something generated by compiler for a NeuroProcGroup. Two different disconnected NeuroProcGroups can have same exact l_addr.core. So in that sense its arbitary. Job of the mapper is to provide unique id. Thats why we are reassigning the l_core_id. |
lava-nc#294) * Modified mapper to handle disconnected lif components connected to same cproc
…me cproc
Issue Number:
Objective of pull request:
Pull request checklist
Your PR fulfills the following requirements:
flakeheaven lint src/lava tests/
) and (bandit -r src/lava/.
) pass locallypytest
) passes locallyPull request type
Please check your PR type:
What is the current behavior?
What is the new behavior?
Does this introduce a breaking change?
Supplemental information