Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnick committed Jan 15, 2025
1 parent 258f1a8 commit c11eac5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/cpu_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MemoryBlockWithReuse : public IMemoryBlock {
bool resize(size_t size) override;
bool hasExtBuffer() const noexcept override;
void free();
size_t size() const; // in bytes
size_t size() const; // in bytes

private:
bool m_useExternalStorage = false;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ void Graph::AllocateWithReuse(const std::vector<size_t>& syncNodesInds) {

memoryRegions.erase(it, memoryRegions.end());

//Set up the memory control subsystem.
// Set up the memory control subsystem.
this->m_pMemoryControl = &(getGraphContext()->getNetworkMemoryControl()->createMemoryControlUnit(this->_name));
m_pMemoryControl->insert(memoryRegions, syncNodesInds);
auto memoryBlocks = m_pMemoryControl->solve();
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/memory_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class IndividualMemoryBlockWithRelease : public IMemoryBlockObserver {
std::shared_ptr<MemoryBlockWithRelease> m_pBlock;
size_t m_max_requested_size = 0;
};
#endif // CPU_DEBUG_CAPS
#endif // CPU_DEBUG_CAPS

class IMemoryManager {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/utils/debug_caps_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void DebugCapsConfig::readProperties() {

if ((envVarValue = readEnv("OV_CPU_MEMORY_STATISTICS_LEVEL")))
memoryStatisticsDumpLevel = std::stoi(envVarValue);

if ((envVarValue = readEnv("OV_CPU_MEMORY_STATISTICS_PATH")))
memoryStatisticsDumpPath = envVarValue;
}
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/intel_cpu/src/utils/memory_stats_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ static void dumpToCSV(std::ofstream& os,
auto weights_statistics = weights_cache.dumpStatistics();
if (!weights_statistics.empty()) {
os << ";;;;;;" << std::endl;
os << "Weights cache statistics" << ";;;;;;" << std::endl;
os << "Weights cache statistics"
<< ";;;;;;" << std::endl;
os << "Socket ID;"
<< "Total size [bytes];"
<< "Total memory objects [-];"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/weights_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const WeightsSharing::Ptr& SocketsWeights::operator[](int socket_id) const {
}

WeightsSharing::Statistics WeightsSharing::dumpStatistics() const {
Statistics retVal = {0 , 0};
Statistics retVal = {0, 0};

std::lock_guard<std::mutex> lock(guard);

Expand Down

0 comments on commit c11eac5

Please sign in to comment.