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
[CPU] fix an assert check for fc tensor parallel (#27922)
Xiuchuan Zhai29d08ac29d69
diff --git a/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp b/src/plugins/intel_cpu/src/nodes/fullyconnected.cppindex 7f6ed99b117..307125ef006 100644--- a/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp+++ b/src/plugins/intel_cpu/src/nodes/fullyconnected.cpp@@ -134,7 +134,7 @@ void FullyConnected::prepareParams() {void FullyConnected::initTensorParallelSync() {if (tp_cfg.enable_tensor_parallel) {tp_cfg.id = tp_cfg.sub_memory->get_memory_id(tp_cfg.w_rank);- OPENVINO_ASSERT(tp_cfg.id > 0, "Tensor Parallel Config ID cannot be negative.");+ OPENVINO_ASSERT(tp_cfg.id >= 0, "Tensor Parallel Config ID cannot be negative.");tp_cfg.sub_memory->set_memory_used(tp_cfg.id, tp_cfg.w_rank);while (true) {std::lock_guard<std::mutex> lock(tp_cfg.sub_memory->_flagMutex);