Hello Query Device Sample — OpenVINO™ documentation (original) (raw)
This sample demonstrates how to show OpenVINO™ Runtime devices and prints their metrics and default configuration values using Query Device API feature. To build the sample, use instructions available at Build the Sample Applicationssection in “Get Started with Samples” guide.
How It Works#
The sample queries all available OpenVINO™ Runtime devices and prints their supported metrics and plugin configuration parameters.
Running#
The sample has no command-line parameters. To see the report, run the following command:
Python
python hello_query_device.py
C++
Sample Output#
The application prints all available devices with their supported metrics and default values for configuration parameters. For example:
Python
[ INFO ] Available devices: [ INFO ] CPU : [ INFO ] SUPPORTED_PROPERTIES: [ INFO ] AVAILABLE_DEVICES: [ INFO ] FULL_DEVICE_NAME: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz [ INFO ] OPTIMIZATION_CAPABILITIES: FP32, FP16, INT8, BIN [ INFO ] RANGE_FOR_ASYNC_INFER_REQUESTS: 1, 1, 1 [ INFO ] RANGE_FOR_STREAMS: 1, 8 [ INFO ] IMPORT_EXPORT_SUPPORT: True [ INFO ] CACHE_DIR: [ INFO ] ENABLE_CPU_PINNING: NO [ INFO ] INFERENCE_NUM_THREADS: 0 [ INFO ] NUM_STREAMS: 1 [ INFO ] DUMP_EXEC_GRAPH_AS_DOT: [ INFO ] INFERENCE_PRECISION_HINT: f32 [ INFO ] EXCLUSIVE_ASYNC_REQUESTS: NO [ INFO ] PERFORMANCE_HINT: [ INFO ] PERFORMANCE_HINT_NUM_REQUESTS: 0 [ INFO ] PERF_COUNT: NO
C++
[ INFO ] OpenVINO Runtime version ......... [ INFO ] Build ........... [ INFO ] [ INFO ] Available devices: [ INFO ] CPU [ INFO ] SUPPORTED_PROPERTIES: [ INFO ] AVAILABLE_DEVICES : [ ] [ INFO ] FULL_DEVICE_NAME : Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz [ INFO ] OPTIMIZATION_CAPABILITIES : [ FP32 FP16 INT8 BIN ] [ INFO ] RANGE_FOR_ASYNC_INFER_REQUESTS : { 1, 1, 1 } [ INFO ] RANGE_FOR_STREAMS : { 1, 8 } [ INFO ] IMPORT_EXPORT_SUPPORT : true [ INFO ] CACHE_DIR : "" [ INFO ] ENABLE_CPU_PINNING : NO [ INFO ] INFERENCE_NUM_THREADS : 0 [ INFO ] NUM_STREAMS : 1 [ INFO ] DUMP_EXEC_GRAPH_AS_DOT : "" [ INFO ] INFERENCE_PRECISION_HINT : f32 [ INFO ] EXCLUSIVE_ASYNC_REQUESTS : NO [ INFO ] PERFORMANCE_HINT : "" [ INFO ] PERFORMANCE_HINT_NUM_REQUESTS : 0 [ INFO ] PERF_COUNT : NO