Skip to content

Commit f889eeb

Browse files
committed
fix adapter is option
1 parent 7907110 commit f889eeb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plugins/intel_npu/src/compiler_adapter/src/plugin_compiler_adapter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,12 @@ bool PluginCompilerAdapter::is_option_supported(std::string optname, std::option
422422
_logger.warning("Failed to cast compiler to VCLCompilerImpl. Returning false for check.");
423423
return false;
424424
}
425-
426-
if (vclCompiler->is_option_supported(optname)) {
427-
_logger.debug("Option %s is supported by VCLCompilerImpl", optname.c_str());
425+
const char* optvalue_ch = optValue.has_value() ? optValue.value().c_str() : nullptr;
426+
if (vclCompiler->is_option_supported(optname, optValue)) {
427+
_logger.debug("Option %s is supported `%s` by VCLCompilerImpl", optname.c_str(), optvalue_ch ? optvalue_ch : "null");
428428
return true;
429429
} else {
430-
_logger.debug("Option %s is not supported by VCLCompilerImpl", optname.c_str());
430+
_logger.debug("Option %s is not supported `%s` by VCLCompilerImpl", optname.c_str(), optvalue_ch ? optvalue_ch : "null");
431431
return false;
432432
}
433433
}

0 commit comments

Comments
 (0)