Skip to content

Commit

Permalink
Added logging for MHAParallelWAOptimizer::split res
Browse files Browse the repository at this point in the history
  • Loading branch information
v-Golubev committed Feb 4, 2025
1 parent b80f41a commit e49721a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ bool MHAParallelWAOptimizer::run(const lowered::LinearIR& linear_ir) {
OV_ITT_SCOPED_TASK(ov::pass::itt::domains::SnippetsTransform, "Snippets::MHAParallelWAOptimizer")
const auto& config = m_configurator->get_config();
size_t new_batch_dim, new_kernel_dim;
if (!split(config->master_shape, m_concurrency, new_batch_dim, new_kernel_dim))
bool split_res = split(config->master_shape, m_concurrency, new_batch_dim, new_kernel_dim);
std::cout << "Split result: " << split_res << ", Master shape: " << ov::PartialShape(config->master_shape)
<< ", Concurrency: " << m_concurrency << ", New batch dimension: " << new_batch_dim
<< ", New kernel dimension: " << new_kernel_dim << std::endl;

if (!split_res)
return false;
auto& master_shape = config->master_shape;
*++master_shape.rbegin() = new_kernel_dim;
Expand Down

0 comments on commit e49721a

Please sign in to comment.