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

Changing how we setup simulator. #449

Merged
merged 16 commits into from
Jan 21, 2025
Merged

Conversation

tt-vjovanovic
Copy link
Member

@tt-vjovanovic tt-vjovanovic commented Dec 31, 2024

Previously, tt_SimulationDevice needed to be setup with two arguments:

  1. Constructor argument with soc descriptor path.
  2. Environment variable that points to simulator run script.

Change in tt_SimulationDevice now requires only one argument, path to directory that contains all necessary files for simulator to run. That directory contains soc_descriptor.yaml, run.sh script and simulator application.

Related PRs:

Manual testing:
Checkout tt-metal repository branch vjovanovic/umd_simulators and built it.
Checkout UMD simulators repository branch vjovanovic/umd_simulators) and follow either VCS or versim readme.

Copy link
Contributor

@broskoTT broskoTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
Has the code which is modified in this PR passed through a CI? If not, please comment briefly in the PR description on how did you manually test this (just a list of commands for reproducibility if it's that easy).

device/coordinate_manager.cpp Outdated Show resolved Hide resolved
device/coordinate_manager.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@vtangTT vtangTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thank you!

@tt-vjovanovic tt-vjovanovic enabled auto-merge (squash) January 21, 2025 11:12
@tt-vjovanovic tt-vjovanovic merged commit ddf6425 into main Jan 21, 2025
16 of 19 checks passed
@tt-vjovanovic tt-vjovanovic deleted the vjovanovic/umd_simulators branch January 21, 2025 12:47
tt-vjovanovic added a commit to tenstorrent/tt-metal that referenced this pull request Jan 21, 2025
Previously, `tt_SimulationDevice` needed to be setup with two arguments:
1. Constructor argument with soc descriptor path.
2. Environment variable that points to simulator run script.

Change in `tt_SimulationDevice` now requires only one argument, path to
directory that contains all necessary files for simulator to run. That
directory contains `soc_descriptor.yaml`, `run.sh` script and simulator
application.

This PR also removes need for two environment variables
(`TT_METAL_SIMULATOR_EN` and `TT_REMOTE_EXE`) and replaces them with
single `TT_METAL_SIMULATOR` variable that contains path to simulator
build directory.

In the future, when tt-metal is built only once for all architectures,
this would mean that one would setup `TT_METAL_SIMULATOR` environment
variable that point to simulator directory and would run it against
architecture that is compiled in that directory.

Related PRs:
- [UMD
simulators](https://yyz-gitlab.local.tenstorrent.com/tenstorrent/tt-metal/-/merge_requests/15)
- [UMD](tenstorrent/tt-umd#449)
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.

4 participants