File tree 1 file changed +7
-1
lines changed
src/plugins/intel_npu/src/compiler_adapter/include
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,20 @@ class CompilerAdapterFactory final {
18
18
const Config& config) const {
19
19
auto compilerType = config.get <COMPILER_TYPE>();
20
20
switch (compilerType) {
21
- case ov::intel_npu::CompilerType::DRIVER:
22
21
case ov::intel_npu::CompilerType::MLIR: {
23
22
if (engineBackend == nullptr || engineBackend->getName () != " LEVEL0" ) {
24
23
return std::make_unique<PluginCompilerAdapter>(nullptr );
25
24
}
26
25
27
26
return std::make_unique<PluginCompilerAdapter>(engineBackend->getInitStructs ());
28
27
}
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
+ }
29
35
default :
30
36
OPENVINO_THROW (" Invalid NPU_COMPILER_TYPE" );
31
37
}
You can’t perform that action at this time.
0 commit comments