Skip to content

Commit 4d4bd54

Browse files
committed
Revert "Forcing the CiP path even if the compiler type was set to "DRIVER""
1 parent b52d7d6 commit 4d4bd54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/plugins/intel_npu/src/compiler_adapter/include/compiler_adapter_factory.hpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@ class CompilerAdapterFactory final {
1818
const Config& config) const {
1919
auto compilerType = config.get<COMPILER_TYPE>();
2020
switch (compilerType) {
21-
case ov::intel_npu::CompilerType::DRIVER:
2221
case ov::intel_npu::CompilerType::MLIR: {
2322
if (engineBackend == nullptr || engineBackend->getName() != "LEVEL0") {
2423
return std::make_unique<PluginCompilerAdapter>(nullptr);
2524
}
2625

2726
return std::make_unique<PluginCompilerAdapter>(engineBackend->getInitStructs());
2827
}
28+
case ov::intel_npu::CompilerType::DRIVER: {
29+
if (engineBackend == nullptr || engineBackend->getName() != "LEVEL0") {
30+
OPENVINO_THROW("NPU Compiler Adapter must be used with LEVEL0 backend");
31+
}
32+
33+
return std::make_unique<DriverCompilerAdapter>(engineBackend->getInitStructs());
34+
}
2935
default:
3036
OPENVINO_THROW("Invalid NPU_COMPILER_TYPE");
3137
}

0 commit comments

Comments
 (0)