Skip to content

Commit 153b349

Browse files
committed
Revert "Forcing the CiP path even if the compiler type was set to "DRIVER""
This reverts commit dbcfe1d.
1 parent c906fb0 commit 153b349

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,13 +18,19 @@ 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
return std::make_unique<PluginCompilerAdapter>(engineBackend->getInitStructs());
2726
}
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+
}
2834
default:
2935
OPENVINO_THROW("Invalid NPU_COMPILER_TYPE");
3036
}

0 commit comments

Comments
 (0)