-
Notifications
You must be signed in to change notification settings - Fork 81
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
Fix simulator setup #15227
base: main
Are you sure you want to change the base?
Fix simulator setup #15227
Conversation
52384c4
to
e35523c
Compare
a952a66
to
fa8455c
Compare
Please drop |
55ee212
to
6bd9ff6
Compare
ed18000
to
f072046
Compare
@@ -10,7 +10,7 @@ arc: | |||
[ ] | |||
|
|||
pcie: | |||
[ ] | |||
[ 0-0 ] |
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.
does the WH simulated soc have pcie cores? If not then I think we should remove this
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.
Yep should've removed this too, ty.
Removed now.
tt_metal/impl/device/device.cpp
Outdated
this->device_kernel_defines_.emplace("PCIE_NOC_Y", std::to_string(pcie_cores[0].y)); | ||
this->device_kernel_defines_.emplace("PCIE_NOC1_X", std::to_string(tt::tt_metal::hal.noc_coordinate(NOC::NOC_1, grid_size.x, pcie_cores[0].x))); | ||
this->device_kernel_defines_.emplace("PCIE_NOC1_Y", std::to_string(tt::tt_metal::hal.noc_coordinate(NOC::NOC_1, grid_size.x, pcie_cores[0].y))); | ||
if (std::getenv("TT_METAL_SIMULATOR_EN")) { |
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.
Passing in PCIe core to device temporary until we enable virtual coordinates but for now maybe we should:
if (std::getenv("TT_METAL_SIMULATOR_EN")) { | |
CoreCoord pcie_core = pcie_cores.empty() ? grid_size : pcie_cores[0] | |
then use this as PCIE_NOC_X and PCIE_NOC_Y and calculate PCIE_NOC1* |
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.
I've removed the if cond with the env var, but pcie_noc1*
are still hardcoded to 14 or 11 like before if pcie_cores.empty()
Not sure if there's a better way of doing this?
633bd19
to
567ea4e
Compare
Ticket
Link to Github Issue
Problem description
Provide context for the problem.
What's changed
Describe the approach used to solve the problem.
Summarize the changes made and its impact.
Checklist