Skip to content

Commit fb472cd

Browse files
committed
code clean
1 parent bed8d34 commit fb472cd

File tree

4 files changed

+10
-1295
lines changed

4 files changed

+10
-1295
lines changed

src/plugins/intel_cpu/src/graph.cpp

+4-10
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#include "utils/node_dumper.h"
4646
#include "utils/precision_support.h"
4747
#include "utils/verbose.h"
48-
#include "nodes/linux_perf.hpp"
4948

5049
#if (OV_THREAD == OV_THREAD_TBB || OV_THREAD == OV_THREAD_TBB_AUTO)
5150
# include <tbb/task.h>
@@ -109,7 +108,6 @@ void Graph::Replicate(const std::shared_ptr<const ov::Model>& model,
109108
OV_ITT_SCOPE_CHAIN(FIRST_INFERENCE, taskChain, itt::domains::intel_cpu_LT, "Graph::Replicate", "ov::Model");
110109

111110
this->_name = model->get_friendly_name();
112-
LinuxPerf::Init();
113111

114112
// Map data object onto producer node
115113
std::map<std::shared_ptr<ov::Node>, NodePtr> op2node;
@@ -1164,7 +1162,6 @@ VecMemoryDescs Graph::getOutputMemoryDescriptors() const {
11641162

11651163
void Graph::InferStatic(SyncInferRequest* request, int numaId) {
11661164
for (const auto& node : m_executableGraphNodes) {
1167-
auto perf1 = LinuxPerf::Profile(node->getTypeStr());
11681165
ExecuteNodeWithCatch(node, request, numaId);
11691166
}
11701167
}
@@ -1440,15 +1437,11 @@ inline void Graph::ExecuteNodeWithCatch(const NodePtr& node, SyncInferRequest* r
14401437
template <typename UpdateStrategy>
14411438
void Graph::InferDynamic(SyncInferRequest* request, int numaId, UpdateStrategy&& update) {
14421439
size_t inferCounter = 0;
1443-
auto perf = LinuxPerf::Profile(std::string("Graph::InferDynamic_#") + std::to_string(infer_count));
14441440
for (auto stopIndx : m_executableSyncNodesInds) {
1445-
{
1446-
auto perf1 = LinuxPerf::Profile("update");
1447-
update(stopIndx);
1448-
}
1441+
update(stopIndx);
1442+
14491443
for (; inferCounter < stopIndx; ++inferCounter) {
14501444
auto& node = m_executableGraphNodes[inferCounter];
1451-
auto perf1 = LinuxPerf::Profile(node->getTypeStr()); // + "_" + node->getName());
14521445

14531446
ExecuteNodeWithCatch(node, request, numaId);
14541447
}
@@ -1494,7 +1487,8 @@ void Graph::Infer(SyncInferRequest* request) {
14941487
static_cast<int>(status));
14951488
}
14961489

1497-
infer_count++;
1490+
if (infer_count != -1)
1491+
infer_count++;
14981492
}
14991493

15001494
void Graph::SortTopologically() {

0 commit comments

Comments
 (0)