Skip to content

Commit

Permalink
#16390: Move reduce_scatter_async into experimental namespace and ena…
Browse files Browse the repository at this point in the history
…ble cluster api tests
  • Loading branch information
tt-aho committed Jan 2, 2025
1 parent 365d3c7 commit d34a23e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def run_reduce_scatter_test(
else:
logger.info(f"Running {num_iters} iterations of reduce scatter")
for i in range(num_iters):
output_tensor_mesh = ttnn.reduce_scatter_async(
output_tensor_mesh = ttnn.experimental.reduce_scatter_async(
input_tensor_mesh,
dim=dim,
math_op=math_op,
Expand Down Expand Up @@ -330,9 +330,6 @@ def test_line_reduce_scatter_async_post_commit(
)


@pytest.mark.skip(
"persistent fabric test with cluster-axis API and multiple concurrent reduce_scatter instances not enabled yet"
)
@skip_for_grayskull("Requires eth connected devices to run")
@pytest.mark.parametrize(
"num_devices, num_links, per_chip_output_shape, dim, layout",
Expand Down Expand Up @@ -399,9 +396,6 @@ def test_line_reduce_scatter_async_on_T3K_cols_post_commit(
)


@pytest.mark.skip(
"persistent fabric test with cluster-axis API and multiple concurrent reduce_scatter instances not enabled yet"
)
@skip_for_grayskull("Requires eth connected devices to run")
@pytest.mark.parametrize(
"num_devices, num_links, per_chip_output_shape, dim, layout",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ struct ExecuteReduceScatter {
} // namespace experimental
} // namespace operations

constexpr auto reduce_scatter_async =
ttnn::register_operation<"ttnn::reduce_scatter_async", ttnn::operations::experimental::ccl::ExecuteReduceScatter>();
namespace experimental {

constexpr auto reduce_scatter_async = ttnn::register_operation<
"ttnn::experimental::reduce_scatter_async",
ttnn::operations::experimental::ccl::ExecuteReduceScatter>();

} // namespace experimental
} // namespace ttnn
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void bind_reduce_scatter(pybind11::module& module, const ccl_operation_t& operat
void py_bind_reduce_scatter_async(pybind11::module& module) {
detail::bind_reduce_scatter(
module,
ttnn::reduce_scatter_async,
ttnn::experimental::reduce_scatter_async,
R"doc(
Performs an reduce_scatter operation on multi-device :attr:`input_tensor` across all devices. This operation requires a persistent
Expand Down

0 comments on commit d34a23e

Please sign in to comment.