From 86c7d5d3d40de8ea2a02eff103ed5d2a2d1d8715 Mon Sep 17 00:00:00 2001 From: csoka Date: Thu, 9 Jan 2025 16:25:48 +0200 Subject: [PATCH] [intel-npu] fixing typos in adapter prints. setting dq support to 6.4 --- .../src/driver_compiler_adapter.cpp | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cpp index bf13a1cd218d7b..1769eef15c9ef4 100644 --- a/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cpp +++ b/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cpp @@ -422,10 +422,10 @@ std::string DriverCompilerAdapter::serializeConfig(const Config& config, optLevelStr << keyOfOptL << KEY_VALUE_SEPARATOR << "\\d+"; std::ostringstream perfHintStr; perfHintStr << keyOfPerfHO << KEY_VALUE_SEPARATOR << "\\S+"; - logger.warning("%s property is not suppored by this compiler version. Removing from parameters", + logger.warning("%s property is not supported by this compiler version. Removing from parameters", keyOfOptL.c_str()); valueOfParams = std::regex_replace(valueOfParams, std::regex(optLevelStr.str()), ""); - logger.warning("%s property is not suppored by this compiler version. Removing from parameters", + logger.warning("%s property is not supported by this compiler version. Removing from parameters", keyOfPerfHO.c_str()); valueOfParams = std::regex_replace(valueOfParams, std::regex(perfHintStr.str()), ""); @@ -483,7 +483,7 @@ std::string DriverCompilerAdapter::serializeConfig(const Config& config, pinningstr << ov::hint::enable_cpu_pinning.name() << KEY_VALUE_SEPARATOR << VALUE_DELIMITER << "\\S+" << VALUE_DELIMITER; logger.warning( - "ENABLE_CPU_PINNING property is not suppored by this compiler version. Removing from parameters"); + "ENABLE_CPU_PINNING property is not supported by this compiler version. Removing from parameters"); content = std::regex_replace(content, std::regex(pinningstr.str()), ""); } @@ -495,9 +495,9 @@ std::string DriverCompilerAdapter::serializeConfig(const Config& config, std::ostringstream maxtilestr; maxtilestr << ov::intel_npu::max_tiles.name() << KEY_VALUE_SEPARATOR << VALUE_DELIMITER << "\\d+" << VALUE_DELIMITER; - logger.warning("NPU_STEPPING property is not suppored by this compiler version. Removing from parameters"); + logger.warning("NPU_STEPPING property is not supported by this compiler version. Removing from parameters"); content = std::regex_replace(content, std::regex(stepstr.str()), ""); - logger.warning("NPU_MAX_TILES property is not suppored by this compiler version. Removing from parameters"); + logger.warning("NPU_MAX_TILES property is not supported by this compiler version. Removing from parameters"); content = std::regex_replace(content, std::regex(maxtilestr.str()), ""); } @@ -507,13 +507,13 @@ std::string DriverCompilerAdapter::serializeConfig(const Config& config, precstr << ov::hint::inference_precision.name() << KEY_VALUE_SEPARATOR << VALUE_DELIMITER << "\\S+" << VALUE_DELIMITER; logger.warning( - "INFERENCE_PRECISION_HINT property is not suppored by this compiler version. Removing from parameters"); + "INFERENCE_PRECISION_HINT property is not supported by this compiler version. Removing from parameters"); content = std::regex_replace(content, std::regex(precstr.str()), ""); } /// Replacing NPU_TILES (for all versions) with NPU_DPU_GROUPS for backwards compatibility if (std::regex_search(content, std::regex(ov::intel_npu::tiles.name()))) { - logger.warning("NPU_TILES property is not suppored by this compiler version. Swaping it to " + logger.warning("NPU_TILES property is not supported by this compiler version. Swaping it to " "NPU_DPU_GROUPS (obsolete)"); content = std::regex_replace(content, std::regex(ov::intel_npu::tiles.name()), "NPU_DPU_GROUPS"); } @@ -524,7 +524,7 @@ std::string DriverCompilerAdapter::serializeConfig(const Config& config, batchstr << ov::intel_npu::batch_mode.name() << KEY_VALUE_SEPARATOR << VALUE_DELIMITER << "\\S+" << VALUE_DELIMITER; - logger.warning("NPU_BATCH_MODE property is not suppored by this compiler version. Removing from parameters"); + logger.warning("NPU_BATCH_MODE property is not supported by this compiler version. Removing from parameters"); content = std::regex_replace(content, std::regex(batchstr.str()), ""); } @@ -534,17 +534,18 @@ std::string DriverCompilerAdapter::serializeConfig(const Config& config, batchstr << ov::hint::execution_mode.name() << KEY_VALUE_SEPARATOR << VALUE_DELIMITER << "\\S+" << VALUE_DELIMITER; logger.warning( - "EXECUTION_MODE_HINT property is not suppored by this compiler version. Removing from parameters"); + "EXECUTION_MODE_HINT property is not supported by this compiler version. Removing from parameters"); content = std::regex_replace(content, std::regex(batchstr.str()), ""); } - // COMPILER_DYNAMIC_QUANTIZATION is not supported in versions < 6.1 - need to remove it - if ((compilerVersion.major < 6) || (compilerVersion.major == 6 && compilerVersion.minor < 3)) { + // COMPILER_DYNAMIC_QUANTIZATION is not supported in versions < 6.4 - need to remove it + if ((compilerVersion.major < 6) || (compilerVersion.major == 6 && compilerVersion.minor < 4)) { std::ostringstream dqstr; dqstr << ov::intel_npu::compiler_dynamic_quantization.name() << KEY_VALUE_SEPARATOR << VALUE_DELIMITER << "\\S+" << VALUE_DELIMITER; - logger.warning("COMPILER_DYNAMIC_QUANTIZATION property is not suppored by this compiler version. Removing from " - "parameters"); + logger.warning( + "COMPILER_DYNAMIC_QUANTIZATION property is not supported by this compiler version. Removing from " + "parameters"); content = std::regex_replace(content, std::regex(dqstr.str()), ""); }