-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Moved CC macros to public API #5929
Moved CC macros to public API #5929
Conversation
…plugin transformations)
@@ -11,6 +11,7 @@ | |||
|
|||
#include <openvino/cc/selective_build.h> | |||
#include <openvino/itt.hpp> | |||
#include <ngraph/pass/itt.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to replace code in snippets then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't have CC macros in snippets. I added these macros to template plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really?
openvino/inference-engine/src/snippets/src/itt.hpp
Lines 33 to 59 in 315c8d4
#if defined(SELECTIVE_BUILD_ANALYZER) | |
#define RUN_ON_FUNCTION_SCOPE(region) OV_SCOPE(ngraph_pass, OV_PP_CAT(region, _run_on_function)) | |
#define MATCHER_SCOPE(region) \ | |
const std::string matcher_name(OV_PP_TOSTRING(region)) | |
#define INTERNAL_OP_SCOPE(region) OV_SCOPE(internal_op, region) | |
#elif defined(SELECTIVE_BUILD) | |
#define MATCHER_SCOPE_(scope, region) \ | |
if (OV_CC_SCOPE_IS_ENABLED(OV_PP_CAT3(scope, _, region)) == 0) \ | |
throw ngraph::ngraph_error(std::string(OV_PP_TOSTRING(OV_PP_CAT3(scope, _, region))) + \ | |
" is disabled!") | |
#define MATCHER_SCOPE(region) \ | |
const std::string matcher_name(OV_PP_TOSTRING(region)); \ | |
if (OV_CC_SCOPE_IS_ENABLED(OV_PP_CAT3(ngraph_pass, _, region)) == 0) \ | |
return | |
#define INTERNAL_OP_SCOPE(region) MATCHER_SCOPE_(internal_op, region) | |
#define RUN_ON_FUNCTION_SCOPE(region) MATCHER_SCOPE_(ngraph_pass, OV_PP_CAT(region, _run_on_function)) | |
#else | |
#define MATCHER_SCOPE(region) \ | |
const std::string matcher_name(OV_PP_TOSTRING(region)) | |
#define INTERNAL_OP_SCOPE(region) | |
#define RUN_ON_FUNCTION_SCOPE(region) | |
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
#pragma once | ||
|
||
#include <openvino/cc/selective_build.h> | ||
#include <openvino/itt.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these headers are NOT a part of release package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah right. I will think how to enable this file only for open source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we need to move all this stuff to openvino/itt
e1d5d53
to
8805c47
Compare
* Moved CC macros for transformations to public API (to reuse their in plugin transformations) * Added CC to template plugin * Moved itt.h from nGraph to openvino/cc * Fixed build
* Moved CC macros for transformations to public API (to reuse their in plugin transformations) * Added CC to template plugin * Moved itt.h from nGraph to openvino/cc * Fixed build
Details: