From b2b8b242b5b8474b403d17ddf5ab7556e26313b1 Mon Sep 17 00:00:00 2001 From: "Liu, Dan1" Date: Mon, 22 Apr 2024 15:41:19 +0800 Subject: [PATCH] fix dry compiler by config --- src/plugins/intel_npu/src/plugin/src/backends.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/intel_npu/src/plugin/src/backends.cpp b/src/plugins/intel_npu/src/plugin/src/backends.cpp index 34bfb02fdc69e0..373673e9aabcf6 100644 --- a/src/plugins/intel_npu/src/plugin/src/backends.cpp +++ b/src/plugins/intel_npu/src/plugin/src/backends.cpp @@ -109,7 +109,10 @@ NPUBackends::NPUBackends(const std::vector& backendRegistry, } #endif } catch (const std::exception& ex) { - _logger.error("Got an error during backend '%s' loading : %s", backendName.c_str(), ex.what()); + const auto compilerType = config.get(); + if (compilerType == ov::intel_npu::CompilerType::DRIVER) { + _logger.error("Got an error during backend '%s' loading : %s", backendName.c_str(), ex.what()); + } } catch (...) { _logger.error("Got an unknown error during backend '%s' loading", backendName.c_str()); }