Skip to content

Commit

Permalink
Fix after merging master
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnick committed Feb 6, 2025
1 parent eb74366 commit d0086b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/graph_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ GraphContext::GraphContext(Config config,
m_numNumaNodes(1),
m_memoryStatesRegister(std::make_shared<node::MemoryStatesRegister>()),
m_auxiliaryNetworkMemoryControl(std::make_shared<NetworkMemoryControl>()),
m_memoryControl(m_auxiliaryNetworkMemoryControl->createMemoryControlUnit()) {
m_memoryControl(m_auxiliaryNetworkMemoryControl->createMemoryControlUnit("main")) {
if (m_streamExecutor) {
m_cpuStreamExecutor = std::dynamic_pointer_cast<ov::threading::CPUStreamsExecutor>(m_streamExecutor);
m_numaNodeId = m_cpuStreamExecutor ? m_cpuStreamExecutor->get_numa_node_id() : 0;
Expand Down
1 change: 0 additions & 1 deletion src/plugins/intel_cpu/src/memory_control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class NetworkMemoryControl {

std::vector<std::pair<std::string, MemoryStatistics>> dumpStatistics() const;

private:
const std::vector<MemoryControl::Ptr>& controlUnits() const {
return m_controlUnits;
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/intel_cpu/src/utils/memory_stats_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void dumpStatistics(std::ostream& os,
os << "Memory stats for graph name: " << graph_lock._graph.GetName() << std::endl;
os << std::endl;
auto ctx = graph_lock._graph.getGraphContext();
auto&& statistics = ctx->getNetworkMemoryControl()->dumpStatistics();
auto&& statistics = ctx->getAuxiliaryNetworkMemoryControl()->dumpStatistics();

for (auto&& stat : statistics) {
os << "Memory control ID: " << stat.first << std::endl;
Expand Down Expand Up @@ -58,7 +58,7 @@ static void dumpStatisticsCSV(std::ofstream& os,
CompiledModel::GraphGuard::Lock graph_lock{graph};
os << "Memory stats for graph name: " << graph_lock._graph.GetName() << ";;;;;;" << std::endl;
auto ctx = graph_lock._graph.getGraphContext();
auto&& statistics = ctx->getNetworkMemoryControl()->dumpStatistics();
auto&& statistics = ctx->getAuxiliaryNetworkMemoryControl()->dumpStatistics();

for (auto&& stat : statistics) {
os << "Memory control ID: " << stat.first << ";;;;;;" << std::endl;
Expand Down

0 comments on commit d0086b5

Please sign in to comment.