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
Improve error message for CPU reservation failures (#38899)
Sun Xiaoxia73c4491fbc65
diff --git a/src/inference/src/dev/threading/istreams_executor.cpp b/src/inference/src/dev/threading/istreams_executor.cppindex d2a7162bf1b..c06ca77d385 100644--- a/src/inference/src/dev/threading/istreams_executor.cpp+++ b/src/inference/src/dev/threading/istreams_executor.cpp@@ -161,7 +161,9 @@ void IStreamsExecutor::Config::update_executor_config() {if (proc_type_table.empty() || proc_type_table[0][ALL_PROC] == 0) {if (_cpu_reservation) {- OPENVINO_THROW("[ Config ] proc_type_table is empty. No CPU resources available!");+ OPENVINO_THROW("No CPU resources available for reservation. All available CPUs may already be reserved "+ "by previously compiled models. Release those models or recompile them with a lower "+ "INFERENCE_NUM_THREADS value to reserve fewer CPUs, then retry.");} else {return;}