Skip to content

Commit 9bcee7e

Browse files
committed
getHostIsa function refactoring + minoradjustments
1 parent 4bff223 commit 9bcee7e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/plugins/intel_cpu/src/emitters/snippets/riscv64/cpu_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ std::vector<snippets::Reg> CPUTargetMachine::get_gp_reg_pool() const {
159159
std::vector<snippets::Reg> reg_pool;
160160
for (size_t i = 1; i < num_gp_regs; i++) {
161161
// Reserve: x0 (zero), x1 (ra), x2 (sp), x3 (gp), x4 (tp), x8 (s0/fp)
162-
if (none_of(i,
162+
if (none_of(static_cast<int>(i),
163163
Xbyak_riscv::ra.getIdx(),
164164
Xbyak_riscv::sp.getIdx(),
165165
Xbyak_riscv::gp.getIdx(),

src/plugins/intel_cpu/src/nodes/subgraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ struct SubgraphShapeInferResult {
199199

200200
} // namespace
201201

202-
static _ov_dnnl_cpu_isa getHostIsa() {
202+
_ov_dnnl_cpu_isa Subgraph::getHostIsa() {
203203
#if defined(OPENVINO_ARCH_X86_64)
204204
return dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core) ? dnnl::impl::cpu::x64::avx512_core
205205
: dnnl::impl::cpu::x64::avx2;

src/plugins/intel_cpu/src/nodes/subgraph.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class Subgraph : public Node {
8484
# define _ov_dnnl_cpu_isa dnnl::impl::cpu::x64::cpu_isa_t
8585
#endif
8686

87+
static _ov_dnnl_cpu_isa getHostIsa();
8788
_ov_dnnl_cpu_isa host_isa;
8889

8990
std::shared_ptr<SubgraphAttrs> subgraph_attrs;

0 commit comments

Comments
 (0)