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,13 +18,19 @@ 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
return std::make_unique<PluginCompilerAdapter>(engineBackend->getInitStructs ());
27
26
}
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
+ }
28
34
default :
29
35
OPENVINO_THROW (" Invalid NPU_COMPILER_TYPE" );
30
36
}
You can’t perform that action at this time.
0 commit comments