Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[RV64] Disabled multi-stream mode when SHL is used (#27250)

Alexandra Sidorova9b97cf9b001a
diff --git a/src/plugins/intel_cpu/src/config.cpp b/src/plugins/intel_cpu/src/config.cpp
index 421dca07747..adcaeaaaa31 100644
--- a/src/plugins/intel_cpu/src/config.cpp
+++ b/src/plugins/intel_cpu/src/config.cpp
@@ -421,6 +421,13 @@ void Config::readProperties(const ov::AnyMap& prop, const ModelType modelType) {
streamsChanged = true;
}
+#if defined(OV_CPU_WITH_SHL)
+ // TODO: multi-stream execution is unsafe when SHL is used:
+ // The library uses global static variables as flags and counters.
+ streams = 1;
+ streamsChanged = true;
+#endif
+
this->modelType = modelType;
CPU_DEBUG_CAP_ENABLE(applyDebugCapsProperties());