-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add perf reporting for ccl async mode
- Loading branch information
1 parent
51d78f8
commit 223273e
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
tests/ttnn/unit_tests/operations/ccl/perf/test_ccl_async_perf.py
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,69 @@ | ||
# SPDX-FileCopyrightText: © 2024 Tenstorrent Inc. | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
import pytest | ||
import ttnn | ||
from models.utility_functions import skip_for_grayskull | ||
from tests.ttnn.unit_tests.operations.ccl.test_new_all_gather import ( | ||
run_all_gather_impl, | ||
) | ||
|
||
|
||
@skip_for_grayskull("Requires eth connected devices to run") | ||
@pytest.mark.parametrize( | ||
"num_devices, num_links, output_shape, dim, layout", | ||
[ | ||
(4, 1, [1, 1, 64, 512], 3, ttnn.TILE_LAYOUT), | ||
(4, 1, [1, 1, 32, 32768], 3, ttnn.TILE_LAYOUT), | ||
(4, 1, [1, 1, 1024, 1024], 3, ttnn.TILE_LAYOUT), | ||
(4, 1, [1, 1, 2048, 16384], 3, ttnn.TILE_LAYOUT), | ||
], | ||
) | ||
@pytest.mark.parametrize( | ||
"input_dtype", | ||
[ | ||
ttnn.bfloat16, | ||
ttnn.bfloat8_b, | ||
], | ||
) | ||
@pytest.mark.parametrize( | ||
"mem_config", | ||
[ | ||
ttnn.MemoryConfig(buffer_type=ttnn.BufferType.DRAM), | ||
], | ||
) | ||
@pytest.mark.parametrize("num_iters", [20]) | ||
@pytest.mark.parametrize("enable_async", [True]) | ||
@pytest.mark.parametrize("device_params", [{"trace_region_size": 1824800}], indirect=True) | ||
def test_all_gather_async_t3000( | ||
t3k_mesh_device, | ||
num_devices, | ||
output_shape, | ||
dim, | ||
num_links, | ||
input_dtype, | ||
layout, | ||
mem_config, | ||
num_iters, | ||
use_program_cache, | ||
function_level_defaults, | ||
enable_async, | ||
): | ||
run_all_gather_impl( | ||
t3k_mesh_device, | ||
num_devices, | ||
output_shape, | ||
dim, | ||
num_links, | ||
input_dtype, | ||
layout, | ||
use_program_cache, | ||
function_level_defaults, | ||
all_gather_topology=ttnn.Topology.Ring, | ||
num_iters=num_iters, | ||
enable_async=enable_async, | ||
rand_tensor=True, | ||
mem_config=mem_config, | ||
trace_mode=True, | ||
) |
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