You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Details:
- Enable basic ITT tracing by default (introduce 3 options
`-DENABLE_PROFILING_ITT=OFF/BASE/FULL`)
- [CPU] Introduce usage of region tracing ITT API
- [CPU] Align naming of the events
### Tickets:
- CVS-170917
ov_dependent_option (ENABLE_SNIPPETS_LIBXSMM_TPP "allow Snippets to use LIBXSMM Tensor Processing Primitives"OFF"ENABLE_INTEL_CPU AND (X86_64 OR AARCH64)"OFF)
56
56
57
-
ov_option (ENABLE_PROFILING_ITT "Build with ITT tracing. Optionally configure pre-built ittnotify library though INTEL_VTUNE_DIR variable."OFF)
57
+
## ITT tracing level: OFF | BASE | FULL
58
+
# OFF - no ITT backend linked; macros are no-ops
59
+
# BASE - link ITT backend; only top-level API scopes are active (default)
60
+
# FULL - link ITT backend; preserve full instrumentation (default prior behavior)
61
+
if(X86_64)
62
+
set(ENABLE_PROFILING_ITT_DEFAULT BASE)
63
+
else()
64
+
set(ENABLE_PROFILING_ITT_DEFAULT OFF)
65
+
endif()
66
+
ov_option_enum(ENABLE_PROFILING_ITT "ITT tracing mode: OFF | BASE | FULL"${ENABLE_PROFILING_ITT_DEFAULT}
67
+
ALLOWED_VALUES OFF BASE FULL)
58
68
59
69
ov_option_enum(ENABLE_PROFILING_FILTER "Enable or disable ITT counter groups.\
Copy file name to clipboardExpand all lines: docs/articles_en/openvino-workflow/deployment-locally/optimial-binary-size-conditional-compilation.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Lean more in the `conditional_compilation_guide <https://github.com/openvinotool
13
13
14
14
There are two steps to reduce binary size of the OpenVINO runtime library with conditional compilation:
15
15
16
-
- Apply ``SELECTIVE_BUILD=COLLECT`` and ``DENABLE_PROFILING_ITT=ON`` build options to enable analysis mode of conditional compilation to collect statistics data using ``itt``.
16
+
- Apply ``SELECTIVE_BUILD=COLLECT`` and ``DENABLE_PROFILING_ITT=FULL`` build options to enable analysis mode of conditional compilation to collect statistics data using ``itt``.
17
17
18
18
- Apply ``SELECTIVE_BUILD=ON`` and ``SELECTIVE_BUILD_STAT=<statistics_data.csv>`` build options to exclude inactive code region with the help of previous statistics data and get the final OpenVINO package.
19
19
@@ -35,7 +35,7 @@ Stage 1: collecting statistics information about code usage
Copy file name to clipboardExpand all lines: docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/auto-device-selection/debugging-auto-device.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,11 +69,11 @@ in which the ``LOG_LEVEL`` is represented by the first letter of its name (ERROR
69
69
Instrumentation and Tracing Technology
70
70
######################################
71
71
72
-
All major performance calls of both OpenVINO™ Runtime and the AUTO plugin are instrumented with Instrumentation and Tracing Technology (ITT) APIs. To enable ITT in OpenVINO™ Runtime, compile it with the following option:
72
+
All major performance calls of both OpenVINO™ Runtime and the AUTO plugin are instrumented with Instrumentation and Tracing Technology (ITT) APIs. ITT is enabled by default with BASE level tracing. For full instrumentation, compile with the following option:
Copy file name to clipboardExpand all lines: docs/dev/conditional_compilation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ However, conditional compilation has a significant drawback - the resulting Open
19
19
20
20
There are two conditional compilation build stages: `SELECTIVE_BUILD=COLLECT` and `SELECTIVE_BUILD=ON`.
21
21
22
-
`SELECTIVE_BUILD=COLLECT` enables analysis mode for annotated code regions. It can be used to collect statistics data using `itt`. Once this stage is completed, run an OpenVINO sample, such as benchmark_app, to generate actual statistic data. Then run `itt_collector tool` to dump the data into csv files. This stage can be enabled during the OpenVINO build with the options `-DSELECTIVE_BUILD=COLLECT -DENABLE_PROFILING_ITT=ON`.
22
+
`SELECTIVE_BUILD=COLLECT` enables analysis mode for annotated code regions. It can be used to collect statistics data using `itt`. Once this stage is completed, run an OpenVINO sample, such as benchmark_app, to generate actual statistic data. Then run `itt_collector tool` to dump the data into csv files. This stage can be enabled during the OpenVINO build with the options `-DSELECTIVE_BUILD=COLLECT -DENABLE_PROFILING_ITT=FULL`.
23
23
24
-
`SELECTIVE_BUILD=ON` excludes all inactive annotated code regions from the compiled binaries using `csv files` generated by the `itt_collector tool`. It is done by a header file which generated from the `csv files`. This stage need build OpenVINO with option `-DSELECTIVE_BUILD=ON -DENABLE_PROFILING_ITT=OFF -DSELECTIVE_BUILD_STAT=<cc_data.csv>`. Notice: `-DENABLE_PROFILING_ITT=OFF` is not must, if user wants to have ITT counters in final application, he can set it ON: `-DENABLE_PROFILING_ITT=ON`.
24
+
`SELECTIVE_BUILD=ON` excludes all inactive annotated code regions from the compiled binaries using `csv files` generated by the `itt_collector tool`. It is done by a header file which generated from the `csv files`. This stage need build OpenVINO with option `-DSELECTIVE_BUILD=ON -DENABLE_PROFILING_ITT=OFF -DSELECTIVE_BUILD_STAT=<cc_data.csv>`. Notice: `-DENABLE_PROFILING_ITT=OFF` is not must, if user wants to have ITT counters in final application, he can set it FULL: `-DENABLE_PROFILING_ITT=FULL`.
25
25
26
26
> **NOTE**: If the above options are not enabled, conditional compilation will be OFF and the default behavior is kept, all OpenVINO features are enabled. You can ignore `SELECTIVE_BUILD` or set option `-DSELECTIVE_BUILD=OFF`.
27
27
@@ -39,7 +39,7 @@ Conditional compilation has two stages:
0 commit comments