-
Notifications
You must be signed in to change notification settings - Fork 3k
[CPU] Enable OV_CPU_VERBOSE=info to print plugin relevant info #31960
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
Open
EgorDuplensky
wants to merge
5
commits into
openvinotoolkit:master
Choose a base branch
from
EgorDuplensky:introduce_cpu_verbose_info
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+230
−91
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e904263
[CPU] Enable OV_CPU_VERBOSE=info to print plugin relevant info
EgorDuplensky 25ca1f5
Apply review comments
EgorDuplensky 9d8ed80
Apply review comments 2
EgorDuplensky 93dc608
Merge branch 'master' into introduce_cpu_verbose_info
maxnick 069041a
Merge branch 'master' into introduce_cpu_verbose_info
maxnick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,30 @@ | ||
| // Copyright (C) 2018-2026 Intel Corporation | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "openvino/core/parallel.hpp" | ||
|
|
||
| namespace ov::intel_cpu { | ||
|
|
||
| constexpr const char* threadingType() { | ||
| constexpr auto tbb_mode = OV_THREAD; | ||
|
|
||
| switch (tbb_mode) { | ||
| case OV_THREAD_TBB: | ||
| return "TBB"; | ||
| case OV_THREAD_OMP: | ||
| return "OMP"; | ||
| case OV_THREAD_SEQ: | ||
| return "SEQ"; | ||
| case OV_THREAD_TBB_AUTO: | ||
| return "TBB_AUTO"; | ||
| case OV_THREAD_TBB_ADAPTIVE: | ||
| return "TBB_ADAPTIVE"; | ||
| default: // never expected, but cannot throw in constexpr context | ||
| return "UNKNOWN"; | ||
| } | ||
| } | ||
|
|
||
| } // namespace ov::intel_cpu | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,42 @@ | ||
| // Copyright (C) 2018-2026 Intel Corporation | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
| #ifdef CPU_DEBUG_CAPS | ||
| # include "verbose_helper.h" | ||
|
|
||
| # include <node.h> | ||
|
|
||
| # include <cstdio> | ||
| # include <cstdlib> | ||
| # include <cstring> | ||
| # include <iostream> | ||
| # include <ostream> | ||
| # include <sstream> | ||
|
|
||
| # include "cpu_types.h" | ||
| # include "utils/general_utils.h" | ||
|
|
||
| namespace ov::intel_cpu { | ||
|
|
||
| bool Verbose::shouldBePrinted() const { | ||
| if (m_lvl < 1) { | ||
| return false; | ||
| } | ||
|
|
||
| if (m_lvl < 2 && any_of(m_node->getType(), Type::Input, Type::Output)) { | ||
| return false; | ||
| } | ||
|
|
||
| const bool low_level = m_lvl < 3; | ||
| const bool is_constant = m_node->isConstant(); | ||
| const bool skip_node = low_level && is_constant; | ||
| return !skip_node; | ||
| } | ||
|
|
||
| void Verbose::flush() const { | ||
| std::cout << m_stream.rdbuf() << '\n'; | ||
| } | ||
|
|
||
| } // namespace ov::intel_cpu | ||
|
|
||
| #endif // CPU_DEBUG_CAPS |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.