OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
Debug capabilities
Debug capabilities are the set of useful debug features, controlled by environment variables.
They can be activated at runtime and might be used for analyzing issues, getting more context, comparing execution results, etc.
Use the following cmake option to enable debug capabilities:
-DENABLE_DEBUG_CAPS=ON
Verbose mode When to use: need to understand execution flow — traces node execution with types, shapes, algorithms, and kernels. Example:
OV_CPU_VERBOSE=1Blob dumping When to use: wrong results / accuracy issues — dump layer I/O tensors and compare against a reference. Warning: raw blobs can have very big sizes Example:
OV_CPU_BLOB_DUMP_NODE_NAME="*" OV_CPU_BLOB_DUMP_DIR=blob_dumpExecution graph serialization When to use: need to have full execution flow picture, i.e. complete graph structure, how nodes are related, who are the producers / consumers of a node. Example:
OV_CPU_EXEC_GRAPH_PATH=graph.xmlIR serialization When to use: unexpected graph structure — serialize IR at each transformation stage to see what changed. Example:
OV_CPU_DUMP_IR="transformations dir=path/dumpdir formats=svg,xml,dot"Graph transformation disabling When to use: crash or wrong results suspected in a transformation — disable groups to isolate the fault. Example:
OV_CPU_DISABLE="transformations=common,preLpt,lpt,postLpt,snippets,specific"Logging When to use: need to debug a specific code path — enables
[ DEBUG ]logs with source location, supports breakpoint traps. Logs can be filtered and used as breakpoints withOV_CPU_DEBUG_LOG_BRK. Example:OV_CPU_DEBUG_LOG=-Inference Precision When to use: precision-related accuracy issues — override inference precision for specific nodes. Example:
OV_CPU_INFER_PRC_POS_PATTERN="^FullyConnected@"Average counters When to use:
- performance analysis across multiple inferences — collects averaged execution counters.
- list of executed nodes, their types and primitive types
Example:
OV_CPU_AVERAGE_COUNTERS=filename
Performance summary When to use: slow inference — displays per-node timing summary when the model is destructed. Example:
OV_CPU_SUMMARY_PERF=1Max ISA cap When to use: reproduce lower-ISA behavior on higher-ISA hardware — caps runtime ISA dispatch.
OV_CPU_MAX_ISAcovers OV kernels,ONEDNN_MAX_CPU_ISAcovers oneDNN primitives; independent, set both to cap everything. Example:OV_CPU_MAX_ISA=AVX2 ONEDNN_MAX_CPU_ISA=AVX2Memory statistics When to use:
- high memory usage or just memory profiling — dumps memory usage statistics per compiled model.
Example:
OV_CPU_MEMORY_STATISTICS_PATH=<file_path>.csv
- high memory usage or just memory profiling — dumps memory usage statistics per compiled model.
Example: