File tree 1 file changed +1
-12
lines changed
src/plugins/intel_npu/src/plugin/src
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -920,6 +920,7 @@ std::unique_ptr<ICompilerAdapter> Plugin::getCompiler(const Config& config) cons
920
920
_logger.debug (" performing createCompiler" );
921
921
922
922
switch (compilerType) {
923
+ case ov::intel_npu::CompilerType::DRIVER:
923
924
case ov::intel_npu::CompilerType::MLIR: {
924
925
if (_backends->getBackendName () != " LEVEL0" ) {
925
926
return std::make_unique<PluginCompilerAdapter>(nullptr );
@@ -932,18 +933,6 @@ std::unique_ptr<ICompilerAdapter> Plugin::getCompiler(const Config& config) cons
932
933
933
934
return std::make_unique<PluginCompilerAdapter>(zeroBackend->getInitStruct ());
934
935
}
935
- case ov::intel_npu::CompilerType::DRIVER: {
936
- if (_backends->getBackendName () != " LEVEL0" ) {
937
- OPENVINO_THROW (" NPU Compiler Adapter must be used with LEVEL0 backend" );
938
- }
939
-
940
- auto zeroBackend = std::dynamic_pointer_cast<ZeroEngineBackend>(_backends->getIEngineBackend ()._ptr );
941
- if (!zeroBackend) {
942
- OPENVINO_THROW (" Failed to cast zeroBackend, zeroBackend is a nullptr" );
943
- }
944
-
945
- return std::make_unique<DriverCompilerAdapter>(zeroBackend->getInitStruct ());
946
- }
947
936
default :
948
937
OPENVINO_THROW (" Invalid NPU_COMPILER_TYPE" );
949
938
}
You can’t perform that action at this time.
0 commit comments