Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CPU][DEBUG_CAPS] Fix OV_CPU_VERBOSE failing to print i64 type #27560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions src/plugins/intel_cpu/src/utils/verbose.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (C) 2018-2024 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "openvino/core/type/element_type.hpp"
#include "utils/general_utils.h"
#ifdef CPU_DEBUG_CAPS

Expand Down Expand Up @@ -119,15 +120,25 @@ void Verbose::printInfo() {

for (size_t i = 0; i < node->getParentEdges().size(); i++) {
std::string prefix("src:" + std::to_string(i) + ':');
formatMemDesc(MemoryDescUtils::convertToDnnlMemoryDesc(
node->getParentEdgeAt(i)->getMemory().getDesc().clone())->getDnnlDesc().get(),

auto desc = node->getParentEdgeAt(i)->getMemory().getDescPtr();
if (desc->getPrecision() == ov::element::i64) { // workaround for oneDNN not having s64 bit type
desc = desc->cloneWithNewPrecision(ov::element::i32);
}

formatMemDesc(MemoryDescUtils::convertToDnnlMemoryDesc(desc)->getDnnlDesc().get(),
prefix);
}

for (size_t i = 0; i < node->getChildEdges().size(); i++) {
std::string prefix("dst:" + std::to_string(i) + ':');
formatMemDesc(MemoryDescUtils::convertToDnnlMemoryDesc(
node->getChildEdgeAt(i)->getMemory().getDesc().clone())->getDnnlDesc().get(),

auto desc = node->getChildEdgeAt(i)->getMemory().getDescPtr();
if (desc->getPrecision() == ov::element::i64) { // workaround for oneDNN not having s64 bit type
desc = desc->cloneWithNewPrecision(ov::element::i32);
}

formatMemDesc(MemoryDescUtils::convertToDnnlMemoryDesc(desc)->getDnnlDesc().get(),
prefix);
}

Expand Down
Loading