Skip to content

Commit

Permalink
Fix Device with "(CPU)" name is not registered when using "AUTO" and …
Browse files Browse the repository at this point in the history
…setting OPENVINO_LOG_LEVEL=5 (#28866)

### Details:
setting OPENVINO_LOG_LEVEL=5
ov_genai.VLMPipeline(model_path, "AUTO") will have error as below:

failed Exception from src\inference\src\cpp\core.cpp:223:
Exception from src\inference\src\dev\core_impl.cpp:609:
Device with "(CPU)" name is not registered in the OpenVINO Runtime

In latency mode, AUTO will use the CPU for acceleration, and the
execution device name will be changed to (CPU)

### Tickets:
CVS-160732
  • Loading branch information
wgzintel authored Feb 9, 2025
1 parent b5a8d80 commit c04d828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inference/src/dev/core_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ ov::Plugin ov::CoreImpl::get_plugin(const std::string& pluginName) const {
auto deviceName = pluginName;
if (deviceName == ov::DEFAULT_DEVICE_NAME)
deviceName = "AUTO";
if (deviceName == "(CPU)")
deviceName = "CPU";
stripDeviceName(deviceName, "-");
std::map<std::string, PluginDescriptor>::const_iterator it;
{
Expand Down

0 comments on commit c04d828

Please sign in to comment.