Enable log information. Disable NPU in U9
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "ANSOPENVINOOD.h"
|
||||
#include "Utility.h"
|
||||
#include "OpenVINODeviceConfig.h"
|
||||
namespace ANSCENTER
|
||||
{
|
||||
bool OPENVINOOD::OptimizeModel(bool fp16, std::string& optimizedModelFolder) {
|
||||
@@ -437,8 +438,11 @@ namespace ANSCENTER
|
||||
ov::Core core;
|
||||
// Step 2: Get Available Devices and Log
|
||||
std::vector<std::string> available_devices = core.get_available_devices();
|
||||
// Define device priority: NPU > GPU > CPU
|
||||
std::vector<std::string> priority_devices = { "NPU", "GPU" };
|
||||
// Define device priority: NPU > GPU > CPU. NPU gated by
|
||||
// OPENVINO_ENABLE_NPU — see OpenVINODeviceConfig.h.
|
||||
std::vector<std::string> priority_devices;
|
||||
if (IsOpenVINONpuEnabled()) priority_devices.push_back("NPU");
|
||||
priority_devices.push_back("GPU");
|
||||
bool device_found = false;
|
||||
|
||||
// Iterate over prioritized devices
|
||||
|
||||
Reference in New Issue
Block a user