-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#10608: add device virtualization btw MeshDevice and physical system
- This fixes #10608, #10419 by adding a logical 2D mesh to remap the physical mesh onto a flattened 2d grid. - A logical to physical coordinate translation map is now supplied per supported system.
- Loading branch information
Showing
30 changed files
with
584 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SPDX-FileCopyrightText: © 2024 Tenstorrent Inc. | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import torch | ||
import pytest | ||
import ttnn | ||
|
||
|
||
@pytest.mark.parametrize("mesh_device", [pytest.param((8, 8), id="8x8_grid")], indirect=True) | ||
def test_visualize_mesh_device(mesh_device): | ||
ttnn.visualize_mesh_device(mesh_device) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"logical_to_physical_coordinates": [ | ||
[[0, 0], [0, 0, 0, 0]], [[0, 1], [0, 1, 0, 0]] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"logical_to_physical_coordinates": [ | ||
[[0, 0], [0, 0, 0, 0]], [[0, 1], [0, 1, 0, 0]], [[0, 2], [0, 2, 0, 0]], [[0, 3], [0, 3, 0, 0]], | ||
[[1, 0], [1, 3, 0, 0]], [[1, 1], [1, 2, 0, 0]], [[1, 2], [1, 1, 0, 0]], [[1, 3], [1, 0, 0, 0]] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"logical_to_physical_coordinates": [ | ||
[[0, 0], [7, 3, 0, 1]], | ||
[[0, 1], [7, 2, 0, 1]], | ||
[[0, 2], [7, 1, 0, 1]], | ||
[[0, 3], [7, 0, 0, 1]], | ||
[[1, 0], [6, 3, 0, 1]], | ||
[[1, 1], [6, 2, 0, 1]], | ||
[[1, 2], [6, 1, 0, 1]], | ||
[[1, 3], [6, 0, 0, 1]], | ||
[[2, 0], [5, 3, 0, 1]], | ||
[[2, 1], [5, 2, 0, 1]], | ||
[[2, 2], [5, 1, 0, 1]], | ||
[[2, 3], [5, 0, 0, 1]], | ||
[[3, 0], [4, 3, 0, 1]], | ||
[[3, 1], [4, 2, 0, 1]], | ||
[[3, 2], [4, 1, 0, 1]], | ||
[[3, 3], [4, 0, 0, 1]], | ||
[[4, 0], [3, 3, 0, 1]], | ||
[[4, 1], [3, 2, 0, 1]], | ||
[[4, 2], [3, 1, 0, 1]], | ||
[[4, 3], [3, 0, 0, 1]], | ||
[[5, 0], [2, 3, 0, 1]], | ||
[[5, 1], [2, 2, 0, 1]], | ||
[[5, 2], [2, 1, 0, 1]], | ||
[[5, 3], [2, 0, 0, 1]], | ||
[[6, 0], [1, 3, 0, 1]], | ||
[[6, 1], [1, 2, 0, 1]], | ||
[[6, 2], [1, 1, 0, 1]], | ||
[[6, 3], [1, 0, 0, 1]], | ||
[[7, 0], [0, 3, 0, 1]], | ||
[[7, 1], [0, 2, 0, 1]], | ||
[[7, 2], [0, 1, 0, 1]], | ||
[[7, 3], [0, 0, 0, 1]] | ||
] | ||
} |
Oops, something went wrong.