|
45 | 45 | #include "utils/node_dumper.h"
|
46 | 46 | #include "utils/precision_support.h"
|
47 | 47 | #include "utils/verbose.h"
|
48 |
| -#include "nodes/linux_perf.hpp" |
49 | 48 |
|
50 | 49 | #if (OV_THREAD == OV_THREAD_TBB || OV_THREAD == OV_THREAD_TBB_AUTO)
|
51 | 50 | # include <tbb/task.h>
|
@@ -109,7 +108,6 @@ void Graph::Replicate(const std::shared_ptr<const ov::Model>& model,
|
109 | 108 | OV_ITT_SCOPE_CHAIN(FIRST_INFERENCE, taskChain, itt::domains::intel_cpu_LT, "Graph::Replicate", "ov::Model");
|
110 | 109 |
|
111 | 110 | this->_name = model->get_friendly_name();
|
112 |
| - LinuxPerf::Init(); |
113 | 111 |
|
114 | 112 | // Map data object onto producer node
|
115 | 113 | std::map<std::shared_ptr<ov::Node>, NodePtr> op2node;
|
@@ -1164,7 +1162,6 @@ VecMemoryDescs Graph::getOutputMemoryDescriptors() const {
|
1164 | 1162 |
|
1165 | 1163 | void Graph::InferStatic(SyncInferRequest* request, int numaId) {
|
1166 | 1164 | for (const auto& node : m_executableGraphNodes) {
|
1167 |
| - auto perf1 = LinuxPerf::Profile(node->getTypeStr()); |
1168 | 1165 | ExecuteNodeWithCatch(node, request, numaId);
|
1169 | 1166 | }
|
1170 | 1167 | }
|
@@ -1440,15 +1437,11 @@ inline void Graph::ExecuteNodeWithCatch(const NodePtr& node, SyncInferRequest* r
|
1440 | 1437 | template <typename UpdateStrategy>
|
1441 | 1438 | void Graph::InferDynamic(SyncInferRequest* request, int numaId, UpdateStrategy&& update) {
|
1442 | 1439 | size_t inferCounter = 0;
|
1443 |
| - auto perf = LinuxPerf::Profile(std::string("Graph::InferDynamic_#") + std::to_string(infer_count)); |
1444 | 1440 | for (auto stopIndx : m_executableSyncNodesInds) {
|
1445 |
| - { |
1446 |
| - auto perf1 = LinuxPerf::Profile("update"); |
1447 |
| - update(stopIndx); |
1448 |
| - } |
| 1441 | + update(stopIndx); |
| 1442 | + |
1449 | 1443 | for (; inferCounter < stopIndx; ++inferCounter) {
|
1450 | 1444 | auto& node = m_executableGraphNodes[inferCounter];
|
1451 |
| - auto perf1 = LinuxPerf::Profile(node->getTypeStr()); // + "_" + node->getName()); |
1452 | 1445 |
|
1453 | 1446 | ExecuteNodeWithCatch(node, request, numaId);
|
1454 | 1447 | }
|
@@ -1494,7 +1487,8 @@ void Graph::Infer(SyncInferRequest* request) {
|
1494 | 1487 | static_cast<int>(status));
|
1495 | 1488 | }
|
1496 | 1489 |
|
1497 |
| - infer_count++; |
| 1490 | + if (infer_count != -1) |
| 1491 | + infer_count++; |
1498 | 1492 | }
|
1499 | 1493 |
|
1500 | 1494 | void Graph::SortTopologically() {
|
|
0 commit comments