[NPU] Change NPUbackends log
Details:
-
Update the confusing log in
NPUbackends. OpenVINO compilation steps need to use NPUPlugin,NPUbackendsand other components. Hope to removeNPUbackendsinitialization to get a dry execution, butNPUbackendscan not be removed or moved.NPUbackendsmust be used to handle property.-
Change
_logger.errorto_logger.warninginNPUBackendsconstructor -
Add judgment about available backends in
CompiledModel.create_infer_requesrt()
-
Change
Tickets:
- E-83001
compilation plugin does not need to initialize level zero backend.
From the log of compile_tool, it seems that compilation does not require initializing zero backend and it can still work.
However, from the perspective of the complete compilation process of the code, the constructor of the NPU Plugin needs to initialize the backend , and use the backend to handle properties of plugin and device. If the backend is not initialized in the NPU Plugin, an error will be reported before the Plugin.compile_model() ( the part of the plugin that actually completes the compilation) is called, and the compilation will be return failure. So the initialization of the backend cannot be removed.
Currently, the backend need to be initialized at compilation time, but the executor in the CompiledModel it is not mandatory, and the initialize of executor can be skipped by passing NPU_CREATE_EXECUTOR 0 in configuration or set 'NPU_CREATE_EXECUTOR' environment variable to 0 ( env setting need build openvino with -D ENABLE_DEBUG_CAPS=ON -D ENABLE_NPU_DEBUG_CAPS=ON).
Therefore, there is nothing can be removed components and in the backend constructor, when the Zerobackend initialization fails, the old log is unreasonable, so the log is adjusted. Could you please review it again?
build_jenkins
Test results has attached to here
This PR will be closed in a week because of 2 weeks of no activity.
This PR was closed because it has been stalled for 2 week with no activity.