Skip to content

Commit eef81bc

Browse files
Update.
1 parent d6b3c76 commit eef81bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/plugins/auto/src/plugin.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,19 @@ std::string Plugin::get_device_list(const ov::AnyMap& properties) const {
753753
ov::DeviceIDParser parsed{device};
754754
std::vector<std::string> device_list = {};
755755
try {
756+
if (parsed.get_device_name().find("CPU") != std::string::npos) {
757+
bool enable_startup_cpu =
758+
properties.count(ov::intel_auto::enable_startup_fallback.name())
759+
? properties.at(ov::intel_auto::enable_startup_fallback.name()).as<bool>()
760+
: true;
761+
bool enable_runtime_cpu =
762+
properties.count(ov::intel_auto::enable_runtime_fallback.name())
763+
? properties.at(ov::intel_auto::enable_runtime_fallback.name()).as<bool>()
764+
: true;
765+
// Skip to load CPU device if both startup and runtime fallback are disabled
766+
if (!enable_startup_cpu && !enable_runtime_cpu)
767+
continue;
768+
}
756769
auto device_id_list = get_core()
757770
->get_property(parsed.get_device_name(), ov::available_devices.name(), {})
758771
.as<std::vector<std::string>>();

0 commit comments

Comments
 (0)