Skip to content

Commit

Permalink
fix dry compiler by config
Browse files Browse the repository at this point in the history
  • Loading branch information
DanLiu2Intel committed Apr 22, 2024
1 parent 5a18bc1 commit b2b8b24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/intel_npu/src/plugin/src/backends.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ NPUBackends::NPUBackends(const std::vector<AvailableBackends>& 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<COMPILER_TYPE>();
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());
}
Expand Down

0 comments on commit b2b8b24

Please sign in to comment.