Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ struct COMPILER_TYPE final : OptionBase<COMPILER_TYPE, ov::intel_npu::CompilerTy
}

static ov::intel_npu::CompilerType defaultValue() {
return ov::intel_npu::CompilerType::DRIVER;
return ov::intel_npu::CompilerType::PREFER_PLUGIN;
}

static ov::intel_npu::CompilerType parse(std::string_view val) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ class CompilerAdapterFactory final {
ov::intel_npu::CompilerType& compilerType) const {
if (compilerType == ov::intel_npu::CompilerType::PREFER_PLUGIN) {
if (engineBackend) {
if (_pluginCompilerIsPresent) {
auto platformName = engineBackend->getDevice()->getName();
if (_pluginCompilerIsPresent && platformName != ov::intel_npu::Platform::NPU3720 &&
platformName != ov::intel_npu::Platform::AUTO_DETECT) {
try {
compilerType = ov::intel_npu::CompilerType::PLUGIN;
return std::make_unique<PluginCompilerAdapter>(engineBackend->getInitStructs());
} catch (...) {
_pluginCompilerIsPresent = false;
compilerType = ov::intel_npu::CompilerType::DRIVER;
}
} else {
compilerType = ov::intel_npu::CompilerType::DRIVER;
}
compilerType = ov::intel_npu::CompilerType::DRIVER;
} else {
// no backend present, offline compilation only
compilerType = ov::intel_npu::CompilerType::PLUGIN;
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/intel_npu/src/plugin/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ void Plugin::init_options() {
if (_globalConfig.get<COMPILER_TYPE>() == ov::intel_npu::CompilerType::PREFER_PLUGIN) {
if (_backend) {
auto platformName = _backend->getDevice()->getName();
if (platformName != ov::intel_npu::Platform::NPU4000 && platformName != ov::intel_npu::Platform::NPU5010) {
if (platformName == ov::intel_npu::Platform::NPU3720 ||
platformName == ov::intel_npu::Platform::AUTO_DETECT) {
std::ostringstream oss;
oss << ov::intel_npu::CompilerType::DRIVER;
_globalConfig.update({{ov::intel_npu::compiler_type.name(), oss.str()}});
Expand Down
Loading