Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[intel-npu] Quickfix for core.get_available_devices exception on hosts with no NPU compiler #28484

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/plugins/intel_npu/src/plugin/src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,17 @@ void Plugin::reset_supported_properties() const {
}

void Plugin::reset_compiler_dependent_properties() const {
uint32_t active_compiler_version = 0;
// get active compiler version
CompilerAdapterFactory compilerAdapterFactory;
auto dummyCompiler = compilerAdapterFactory.getCompiler(_backends->getIEngineBackend(), _globalConfig);
uint32_t active_compiler_version = dummyCompiler->get_version();
try {
CompilerAdapterFactory compilerAdapterFactory;
auto dummyCompiler = compilerAdapterFactory.getCompiler(_backends->getIEngineBackend(), _globalConfig);
active_compiler_version = dummyCompiler->get_version();
} catch (...) {
_logger.warning(
"No available compiler. Can not determine version > compiler dependent properties remain hidden");
return;
}

// NPU_COMPILER_DYNAMIC_QUANTIZATION
// unpublish if compiler version requirement is not met
Expand Down
Loading