File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -753,6 +753,19 @@ std::string Plugin::get_device_list(const ov::AnyMap& properties) const {
753
753
ov::DeviceIDParser parsed{device};
754
754
std::vector<std::string> device_list = {};
755
755
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
+ }
756
769
auto device_id_list = get_core ()
757
770
->get_property (parsed.get_device_name (), ov::available_devices.name (), {})
758
771
.as <std::vector<std::string>>();
You can’t perform that action at this time.
0 commit comments