Skip to content

Commit 72477a4

Browse files
committed
Forcing the CiP path even if the compiler type was set to "DRIVER"
1 parent 13bf34d commit 72477a4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

+1-7
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,13 @@ 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:
2122
case ov::intel_npu::CompilerType::MLIR: {
2223
if (engineBackend == nullptr || engineBackend->getName() != "LEVEL0") {
2324
return std::make_unique<PluginCompilerAdapter>(nullptr);
2425
}
2526
return std::make_unique<PluginCompilerAdapter>(engineBackend->getInitStructs());
2627
}
27-
case ov::intel_npu::CompilerType::DRIVER: {
28-
if (engineBackend == nullptr || engineBackend->getName() != "LEVEL0") {
29-
OPENVINO_THROW("NPU Compiler Adapter must be used with LEVEL0 backend");
30-
}
31-
32-
return std::make_unique<DriverCompilerAdapter>(engineBackend->getInitStructs());
33-
}
3428
default:
3529
OPENVINO_THROW("Invalid NPU_COMPILER_TYPE");
3630
}

0 commit comments

Comments
 (0)