OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CPU][Snippets] Fixed build with CPU_DEBUG_CAPS=ON and SNIPPETS_DEBUG_CAPS=OFF (#29642)
Alexandra Sidorovacee9506112f2
diff --git a/src/plugins/intel_cpu/src/extension.cpp b/src/plugins/intel_cpu/src/extension.cppindex 2735b10c7e1..ca3fd7bc997 100644--- a/src/plugins/intel_cpu/src/extension.cpp+++ b/src/plugins/intel_cpu/src/extension.cpp@@ -68,16 +68,16 @@ private:# define OP_EXTENSION_X64(x)#endif-#if defined(CPU_DEBUG_CAPS)-# define OP_EXTENSION_DEBUG_CAPS(x) x,+#if defined(SNIPPETS_DEBUG_CAPS)+# define OP_EXTENSION_SNIPPETS_DEBUG_CAPS(x) x,#else-# define OP_EXTENSION_DEBUG_CAPS(x)+# define OP_EXTENSION_SNIPPETS_DEBUG_CAPS(x)#endif-#if defined(CPU_DEBUG_CAPS) && defined(OPENVINO_ARCH_X86_64)-# define OP_EXTENSION_DEBUG_CAPS_X64(x) x,+#if defined(SNIPPETS_DEBUG_CAPS) && defined(OPENVINO_ARCH_X86_64)+# define OP_EXTENSION_SNIPPETS_DEBUG_CAPS_X64(x) x,#else-# define OP_EXTENSION_DEBUG_CAPS_X64(x)+# define OP_EXTENSION_SNIPPETS_DEBUG_CAPS_X64(x)#endifOPENVINO_CREATE_EXTENSIONS(std::vector<ov::Extension::Ptr>({@@ -184,9 +184,9 @@ OPENVINO_CREATE_EXTENSIONS(std::vector<ov::Extension::Ptr>({std::make_shared<ov::OpExtension<ov::snippets::op::ReduceSum>>(),std::make_shared<ov::OpExtension<ov::snippets::op::Reshape>>(),// clang-format off- OP_EXTENSION_DEBUG_CAPS(std::make_shared<ov::OpExtension<ov::snippets::op::PerfCountBegin>>())- OP_EXTENSION_DEBUG_CAPS(std::make_shared<ov::OpExtension<ov::snippets::op::PerfCountEnd>>())- OP_EXTENSION_DEBUG_CAPS_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::PerfCountRdtscBegin>>())- OP_EXTENSION_DEBUG_CAPS_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::PerfCountRdtscEnd>>())+ OP_EXTENSION_SNIPPETS_DEBUG_CAPS(std::make_shared<ov::OpExtension<ov::snippets::op::PerfCountBegin>>())+ OP_EXTENSION_SNIPPETS_DEBUG_CAPS(std::make_shared<ov::OpExtension<ov::snippets::op::PerfCountEnd>>())+ OP_EXTENSION_SNIPPETS_DEBUG_CAPS_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::PerfCountRdtscBegin>>())+ OP_EXTENSION_SNIPPETS_DEBUG_CAPS_X64(std::make_shared<ov::OpExtension<ov::intel_cpu::PerfCountRdtscEnd>>())// clang-format on}));