From 8e480d7a7e55b9df37db9164109a6b112c15c92b Mon Sep 17 00:00:00 2001 From: Aswinmcw Date: Tue, 29 Oct 2024 04:24:36 +0000 Subject: [PATCH] #14267: Use snake_case --- .../cpp/ttnn/operations/ccl/all_gather/device/all_gather_op.cpp | 2 +- ttnn/cpp/ttnn/operations/ccl/ccl_common.cpp | 2 +- ttnn/cpp/ttnn/operations/ccl/ccl_common.hpp | 2 +- .../operations/ccl/reduce_scatter/device/reduce_scatter_op.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ttnn/cpp/ttnn/operations/ccl/all_gather/device/all_gather_op.cpp b/ttnn/cpp/ttnn/operations/ccl/all_gather/device/all_gather_op.cpp index 07cdc9d8bf2..27b4470612b 100644 --- a/ttnn/cpp/ttnn/operations/ccl/all_gather/device/all_gather_op.cpp +++ b/ttnn/cpp/ttnn/operations/ccl/all_gather/device/all_gather_op.cpp @@ -25,7 +25,7 @@ AllGather create_all_gather_struct( ) { uint32_t num_devices = devices.size(); auto [device_index, sender_device_id, receiver_device_id] = - getDeviceIndexAndSenderReceiverIDs(input_tensor, devices, topology); + get_device_index_and_sender_receiver_ids(input_tensor, devices, topology); return ttnn::AllGather{ dim, num_links, num_devices, device_index, user_defined_num_workers, user_defined_num_buffers_per_channel, receiver_device_id, sender_device_id, memory_config.value_or(input_tensor.memory_config()), topology}; diff --git a/ttnn/cpp/ttnn/operations/ccl/ccl_common.cpp b/ttnn/cpp/ttnn/operations/ccl/ccl_common.cpp index 72ee94749d4..5faf89bd0a6 100644 --- a/ttnn/cpp/ttnn/operations/ccl/ccl_common.cpp +++ b/ttnn/cpp/ttnn/operations/ccl/ccl_common.cpp @@ -12,7 +12,7 @@ namespace ttnn { namespace ccl { -std::tuple, std::optional> getDeviceIndexAndSenderReceiverIDs( +std::tuple, std::optional> get_device_index_and_sender_receiver_ids( const Tensor& input_tensor, const std::vector& devices, const ttnn::ccl::Topology& topology) { diff --git a/ttnn/cpp/ttnn/operations/ccl/ccl_common.hpp b/ttnn/cpp/ttnn/operations/ccl/ccl_common.hpp index e41d0f51e9a..2335247d548 100644 --- a/ttnn/cpp/ttnn/operations/ccl/ccl_common.hpp +++ b/ttnn/cpp/ttnn/operations/ccl/ccl_common.hpp @@ -18,7 +18,7 @@ namespace ttnn { namespace ccl { -std::tuple, std::optional> getDeviceIndexAndSenderReceiverIDs( +std::tuple, std::optional> get_device_index_and_sender_receiver_ids( const Tensor& input_tensor, const std::vector& devices, const ttnn::ccl::Topology& topology); diff --git a/ttnn/cpp/ttnn/operations/ccl/reduce_scatter/device/reduce_scatter_op.cpp b/ttnn/cpp/ttnn/operations/ccl/reduce_scatter/device/reduce_scatter_op.cpp index ce14d488446..1bc2a81efb6 100644 --- a/ttnn/cpp/ttnn/operations/ccl/reduce_scatter/device/reduce_scatter_op.cpp +++ b/ttnn/cpp/ttnn/operations/ccl/reduce_scatter/device/reduce_scatter_op.cpp @@ -92,7 +92,7 @@ Tensor reduce_scatter( const auto& input_tensor = input_tensors.at(0); auto [device_index, sender_device_id, receiver_device_id] = - getDeviceIndexAndSenderReceiverIDs(input_tensor, devices, topology); + get_device_index_and_sender_receiver_ids(input_tensor, devices, topology); TT_FATAL(receiver_device_id != std::nullopt || sender_device_id != std::nullopt, "Error, Reduce-scatter was unable to identify either a sender or receiver device ID and atleast one must be identified for a valid Reduce-scatter configuration. The input mesh tensor or Reduce-scatter arguments may be incorrect");