Skip to content

Commit 5d45e02

Browse files
committed
Apply review comments 2
1 parent 25ca1f5 commit 5d45e02

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

src/plugins/intel_cpu/src/utils/threading.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (C) 2018-2026 Intel Corporation
2+
// SPDX-License-Identifier: Apache-2.0
3+
//
4+
15
#pragma once
26

37
#include "openvino/core/parallel.hpp"

src/plugins/intel_cpu/src/utils/verbose.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@
33
//
44
#include "verbose.h"
55

6+
#include <node.h>
7+
8+
#include <algorithm>
9+
#include <atomic>
10+
#include <cstdint>
11+
#include <cstdio>
12+
#include <cstdlib>
13+
#include <cstring>
14+
#include <iostream>
15+
#include <sstream>
16+
#include <string>
17+
#include <utility>
18+
619
#include "common/c_types_map.hpp"
720
#include "common/verbose.hpp"
821
#include "cpu/x64/cpu_isa_traits.hpp"
922
#include "cpu_types.h"
1023
#include "dnnl_extension_utils.h"
1124
#include "memory_desc/cpu_memory_desc.h"
1225
#include "memory_desc/cpu_memory_desc_utils.h"
26+
#include "oneapi/dnnl/dnnl.hpp"
1327
#include "onednn/iml_type_mapper.h"
1428
#include "openvino/core/log_util.hpp"
1529
#include "openvino/core/version.hpp"

src/plugins/intel_cpu/src/utils/verbose_helper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2018-2025 Intel Corporation
1+
// Copyright (C) 2018-2026 Intel Corporation
22
// SPDX-License-Identifier: Apache-2.0
33
//
44
#ifdef CPU_DEBUG_CAPS
@@ -10,6 +10,7 @@
1010
# include <cstdlib>
1111
# include <cstring>
1212
# include <iostream>
13+
# include <ostream>
1314
# include <sstream>
1415

1516
# include "cpu_types.h"
@@ -33,7 +34,7 @@ bool Verbose::shouldBePrinted() const {
3334
}
3435

3536
void Verbose::flush() const {
36-
std::cout << m_stream.rdbuf() << "\n";
37+
std::cout << m_stream.rdbuf() << '\n';
3738
}
3839

3940
} // namespace ov::intel_cpu

src/plugins/intel_cpu/src/utils/verbose_helper.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2018-2025 Intel Corporation
1+
// Copyright (C) 2018-2026 Intel Corporation
22
// SPDX-License-Identifier: Apache-2.0
33
//
44
#pragma once
@@ -8,6 +8,7 @@
88

99
# include <charconv>
1010
# include <cstdlib>
11+
# include <memory>
1112
# include <sstream>
1213
# include <string>
1314

@@ -58,7 +59,7 @@ class Verbose {
5859
};
5960

6061
// use heap allocation instead of stack to align with PERF macro (to have proper destruction order)
61-
# define VERBOSE(...) const auto verbose = std::unique_ptr<Verbose>(new Verbose(__VA_ARGS__));
62+
# define VERBOSE(...) const auto verbose = std::make_unique<Verbose>(__VA_ARGS__);
6263
} // namespace ov::intel_cpu
6364

6465
#else

0 commit comments

Comments
 (0)