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

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Fix simulator setup #15227

merged 1 commit into from
Dec 3, 2024

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

@vtangTT vtangTT force-pushed the vtangTT/fix_simulator branch from 52384c4 to e35523c Compare November 19, 2024 20:51
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

@vtangTT vtangTT force-pushed the vtangTT/fix_simulator branch from 55ee212 to 6bd9ff6 Compare November 28, 2024 04:20
@vtangTT vtangTT requested a review from abhullar-tt November 28, 2024 04:35
@vtangTT vtangTT force-pushed the vtangTT/fix_simulator branch from ed18000 to f072046 Compare November 28, 2024 14:24
@@ -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?

@vtangTT vtangTT force-pushed the vtangTT/fix_simulator branch from 633bd19 to 567ea4e Compare November 28, 2024 19:41
@vtangTT vtangTT requested a review from abhullar-tt November 29, 2024 17:09
- HACK for passing BH pcie coordinates during simulation mode
- Correct compute grid size for BH simulator
@vtangTT vtangTT force-pushed the vtangTT/fix_simulator branch from 567ea4e to e9646b6 Compare December 3, 2024 04:20
@vtangTT vtangTT merged commit 2c31478 into main Dec 3, 2024
148 of 149 checks passed
@vtangTT vtangTT deleted the vtangTT/fix_simulator branch December 3, 2024 07:12
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