Skip to content

Commit ff69f1b

Browse files
authored
[intel-npu] Moving backend options registration up in the init sequence (#30434)
### Details: - Moving backend options registration upper in the init sequence so it will properly catch env var parsing ### Tickets: - *ticket-id*
1 parent 528e9c1 commit ff69f1b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/plugins/intel_npu/src/plugin/src/plugin.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,15 @@ void Plugin::init_options() {
220220
REGISTER_OPTION(TURBO);
221221
REGISTER_OPTION(WORKLOAD_TYPE);
222222
}
223+
// register backend options
224+
_backend->registerOptions(*_options);
223225
}
224226

225227
// parse again env_variables to update registered configs which have env vars set
226228
_globalConfig.parseEnvVars();
227229

228230
// filter out unsupported options
229231
filter_config_by_compiler_support(_globalConfig);
230-
231-
if (_backend) {
232-
_backend->registerOptions(*_options);
233-
}
234232
}
235233

236234
void Plugin::filter_config_by_compiler_support(FilteredConfig& cfg) const {

0 commit comments

Comments
 (0)