Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Fix simulator setup #15227

wants to merge 6 commits into from

Conversation

vtangTT
Copy link
Contributor

@vtangTT vtangTT commented Nov 19, 2024

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

github-actions[bot]

This comment was marked as outdated.

@vtangTT vtangTT force-pushed the vtangTT/fix_simulator branch 5 times, most recently from a952a66 to fa8455c Compare November 28, 2024 03:28
@vtangTT vtangTT marked this pull request as ready for review November 28, 2024 03:30
@abhullar-tt
Copy link
Contributor

Please drop fa8455c49f86258ca6442919a6d32c6d0ae2190e that was just a workaround to run the test through VCS

@@ -10,7 +10,7 @@ arc:
[ ]

pcie:
[ ]
[ 0-0 ]
Copy link
Contributor

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

Copy link
Contributor Author

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.

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")) {
Copy link
Contributor

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:

Suggested change
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*

Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants