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