OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[NPU] Do not throw if driver doesn't support turbo (#31199)
Bogdan Pereanu8231e61bc9f4
diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/graph.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/graph.cppindex 47270920d53..a150c1357ca 100644--- a/src/plugins/intel_npu/src/compiler_adapter/src/graph.cpp+++ b/src/plugins/intel_npu/src/compiler_adapter/src/graph.cpp@@ -130,14 +130,15 @@ void Graph::initialize(const Config& config) {uint32_t command_queue_options = 0;if (config.has<TURBO>() && config.get<TURBO>()) {- if (_zeroInitStruct->getCommandQueueDdiTable().version() < ZE_MAKE_VERSION(1, 0)) {- OPENVINO_THROW("Turbo is not supported by the current driver");+ if (_zeroInitStruct->getCommandQueueDdiTable().version() >= ZE_MAKE_VERSION(1, 0)) {+ _logger.debug("Set ZE_NPU_COMMAND_QUEUE_OPTION_TURBO in command queue options");+ command_queue_options = command_queue_options | ZE_NPU_COMMAND_QUEUE_OPTION_TURBO;}- command_queue_options = command_queue_options | ZE_NPU_COMMAND_QUEUE_OPTION_TURBO;}if (_zeroInitStruct->getCommandQueueDdiTable().version() >= ZE_MAKE_VERSION(1, 1) &&config.has<RUN_INFERENCES_SEQUENTIALLY>() && config.get<RUN_INFERENCES_SEQUENTIALLY>()) {+ _logger.debug("Set ZE_NPU_COMMAND_QUEUE_OPTION_DEVICE_SYNC in command queue options");command_queue_options = command_queue_options | ZE_NPU_COMMAND_QUEUE_OPTION_DEVICE_SYNC;}