diff --git a/src/common/snippets/include/snippets/lowered/linear_ir.hpp b/src/common/snippets/include/snippets/lowered/linear_ir.hpp index 8ebc56c5d78eb6..c0aa3dc00224f0 100644 --- a/src/common/snippets/include/snippets/lowered/linear_ir.hpp +++ b/src/common/snippets/include/snippets/lowered/linear_ir.hpp @@ -29,7 +29,7 @@ class Config { // Minimal advised work amount that should be processed during one call of the executable produced by Subgraph::generate // Set by a backend, should be large enough to compensate for the kernel call overheads size_t m_min_kernel_work_amount = 256; - bool m_enable_segfault_detector = false; + bool m_enable_segfault_detector = true; }; /* The control flow of Snippets is built on Linear Intermediate Representation (Linear IR). diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp b/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp index 82621146e7bfa3..0b656ea3f7896a 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_bf16_emitters.hpp @@ -20,7 +20,7 @@ class jit_uni_vcvtneps2bf16 : public jit_emitter { size_t get_inputs_num() const override { return 1; } void print_debug_info() const override { - std::cerr << "ERROR is from jit_uni_vcvtneps2bf16." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } private: diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_conversion_emitters.cpp b/src/plugins/intel_cpu/src/emitters/x64/jit_conversion_emitters.cpp index a22ab3c9d801dc..ca9e6143e343ed 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_conversion_emitters.cpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_conversion_emitters.cpp @@ -193,7 +193,7 @@ void jit_convert_truncation_emitter::dword2int8(const std::vector &in_ve } void jit_convert_truncation_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_convert_truncation_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "input_type:" << input_type << " output_type" << output_type << "\n"; } @@ -337,7 +337,7 @@ size_t jit_convert_saturation_emitter::aux_vecs_count() const { } void jit_convert_saturation_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_convert_saturation_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "input_type:" << input_type << " output_type" << output_type << "\n"; } diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_emitters.cpp b/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_emitters.cpp index 0ae7e2054dbb2f..e8ad90a115451d 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_emitters.cpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_emitters.cpp @@ -84,7 +84,7 @@ void jit_dnnl_emitter::emit_data() const { } void jit_dnnl_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_dnnl_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } @@ -95,7 +95,7 @@ jit_dnnl_aux_emitter::jit_dnnl_aux_emitter(jit_generator *host, cpu_isa_t host_i } void jit_dnnl_aux_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_dnnl_aux_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_ext_emitters.hpp b/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_ext_emitters.hpp index 4afe82a8077a68..2f31bfdb73a7ec 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_ext_emitters.hpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_dnnl_ext_emitters.hpp @@ -23,7 +23,7 @@ class jit_relu_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_relu_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -40,7 +40,7 @@ class jit_sigmoid_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_sigmoid_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -57,7 +57,7 @@ class jit_tanh_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_tanh_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -74,7 +74,7 @@ class jit_elu_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_elu_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -91,7 +91,7 @@ class jit_exp_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_exp_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -108,7 +108,7 @@ class jit_abs_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_abs_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -126,7 +126,7 @@ class jit_clamp_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_clamp_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -144,7 +144,7 @@ class jit_swish_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_swish_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -162,7 +162,7 @@ class jit_hswish_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_hswish_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -177,7 +177,7 @@ class jit_gelu_v0_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_gelu_v0_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -199,7 +199,7 @@ class jit_gelu_v7_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_gelu_v7_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; @@ -224,7 +224,7 @@ class jit_round_emitter : public jit_dnnl_emitter { set_injector(); } void print_debug_info() const override { - std::cerr << "ERROR is from jit_round_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "dnnl_alg_kind:" << kind << " alpha" << alpha << " beta" << beta << "\n"; } }; diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.cpp b/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.cpp index 873e58bdd03bd2..7a70464e76ef08 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.cpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.cpp @@ -82,7 +82,7 @@ std::set> jit_add_emitter::get_supported_precisions(c } void jit_add_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_add_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// MUL_ADD /// @@ -177,7 +177,7 @@ std::set> jit_mul_add_emitter::get_supported_precisio } void jit_mul_add_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_mul_add_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// SUB /// @@ -228,7 +228,7 @@ std::set> jit_subtract_emitter::get_supported_precisi } void jit_subtract_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_subtract_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// MULTIPLY /// @@ -279,7 +279,7 @@ std::set> jit_multiply_emitter::get_supported_precisi } void jit_multiply_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_multiply_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// DIVIDE /// @@ -348,7 +348,7 @@ size_t jit_divide_emitter::aux_vecs_count() const { } void jit_divide_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_divide_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// FLOOR /// @@ -384,7 +384,7 @@ void jit_floor_emitter::emit_isa(const std::vector &in_vec_idxs, const s } void jit_floor_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_floor_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// CEILING /// @@ -421,7 +421,7 @@ void jit_ceiling_emitter::emit_isa(const std::vector &in_vec_idxs, const } void jit_ceiling_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_ceiling_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// FLOOR_MOD /// @@ -479,7 +479,7 @@ size_t jit_floor_mod_emitter::aux_vecs_count() const { } void jit_floor_mod_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_floor_mod_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// MOD /// @@ -537,7 +537,7 @@ size_t jit_mod_emitter::aux_vecs_count() const { } void jit_mod_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_mod_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// MAXIMUM /// @@ -589,7 +589,7 @@ std::set> jit_maximum_emitter::get_supported_precisio } void jit_maximum_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_maximum_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// MINIMUM /// @@ -641,7 +641,7 @@ std::set> jit_minimum_emitter::get_supported_precisio } void jit_minimum_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_minimum_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// SQUARED_DIFFERENCE /// @@ -700,7 +700,7 @@ std::set> jit_squared_difference_emitter::get_support } void jit_squared_difference_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_squared_difference_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// POWER_DYNAMIC /// @@ -815,7 +815,7 @@ void jit_power_dynamic_emitter::emit_isa(const std::vector &in_vec_idxs, } void jit_power_dynamic_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_power_dynamic_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } @@ -883,7 +883,7 @@ size_t jit_equal_emitter::aux_vecs_count() const { } void jit_equal_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_equal_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// NOT_EQUAL /// @@ -950,7 +950,7 @@ size_t jit_not_equal_emitter::aux_vecs_count() const { } void jit_not_equal_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_not_equal_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// GREATER /// @@ -1017,7 +1017,7 @@ size_t jit_greater_emitter::aux_vecs_count() const { } void jit_greater_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_greater_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// GREATER_EQUAL /// @@ -1085,7 +1085,7 @@ size_t jit_greater_equal_emitter::aux_vecs_count() const { } void jit_greater_equal_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_greater_equal_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// LESS /// @@ -1152,7 +1152,7 @@ size_t jit_less_emitter::aux_vecs_count() const { } void jit_less_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_less_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// LESS_EQUAL /// @@ -1220,7 +1220,7 @@ size_t jit_less_equal_emitter::aux_vecs_count() const { } void jit_less_equal_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_less_equal_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// LOGICAL_AND /// @@ -1307,7 +1307,7 @@ size_t jit_logical_and_emitter::aux_vecs_count() const { } void jit_logical_and_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_logical_and_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// LOGICAL_OR /// @@ -1394,7 +1394,7 @@ size_t jit_logical_or_emitter::aux_vecs_count() const { } void jit_logical_or_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_logical_or_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// LOGICAL_XOR /// @@ -1481,7 +1481,7 @@ size_t jit_logical_xor_emitter::aux_vecs_count() const { } void jit_logical_xor_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_logical_xor_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// LOGICAL_NOT /// @@ -1547,7 +1547,7 @@ size_t jit_logical_not_emitter::aux_vecs_count() const { } void jit_logical_not_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_logical_not_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// POWER_STATIC /// @@ -1742,7 +1742,7 @@ size_t jit_power_static_emitter::aux_vecs_count() const { } void jit_power_static_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_power_static_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "power:" << power << " scale:" << scale << " shift:" << shift << "\n"; } @@ -1809,7 +1809,7 @@ size_t jit_prelu_emitter::aux_vecs_count() const { } void jit_prelu_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_prelu_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// SQRT /// @@ -1846,7 +1846,7 @@ void jit_sqrt_emitter::emit_isa(const std::vector &in_vec_idxs, const st } void jit_sqrt_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_sqrt_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// Negate /// @@ -1881,7 +1881,7 @@ void jit_negative_emitter::emit_isa(const std::vector &in_vec_idxs, cons } void jit_negative_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_negative_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// ERF /// @@ -2070,7 +2070,7 @@ size_t jit_erf_emitter::aux_vecs_count() const { } void jit_erf_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_erf_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// SOFT SIGN /// @@ -2119,7 +2119,7 @@ void jit_soft_sign_emitter::register_table_entries() { } void jit_soft_sign_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_soft_sign_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// IS_FINITE /// @@ -2175,7 +2175,7 @@ void jit_is_finite_emitter::register_table_entries() { } void jit_is_finite_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_is_finite_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// IS_INF /// @@ -2253,7 +2253,7 @@ void jit_is_inf_emitter::register_table_entries() { } void jit_is_inf_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_is_inf_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "detect_negative:" << detect_negative << " detect_positive" << detect_positive << "\n"; } @@ -2306,7 +2306,7 @@ void jit_is_nan_emitter::register_table_entries() { } void jit_is_nan_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_is_nan_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } /// SELECT /// @@ -2374,7 +2374,7 @@ void jit_select_emitter::emit_isa(const std::vector &in_vec_idxs, const } void jit_select_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_select_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } } // namespace intel_cpu diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.hpp b/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.hpp index 3012a7901da576..4d0965c0e8ed55 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.hpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_eltwise_emitters.hpp @@ -4,6 +4,7 @@ #pragma once +#include #include "jit_emitter.hpp" namespace ov { diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_emitter.hpp b/src/plugins/intel_cpu/src/emitters/x64/jit_emitter.hpp index c10089ca1db3d0..23102cf2fd8ca8 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_emitter.hpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_emitter.hpp @@ -3,6 +3,7 @@ // #pragma once +#include #include #include @@ -58,7 +59,8 @@ class jit_emitter : public ov::snippets::Emitter { static std::set> get_supported_precisions(const std::shared_ptr& node = nullptr); virtual void print_debug_info() const { - std::cerr << "Debug info was not set. This is default info from base jit_emitter." << std::endl; + std::cerr << "Emitter type name:" << get_type_name(this) + << " This is default info from base jit_emitter. Exact emitter type name is not set." << std::endl; } protected: @@ -145,6 +147,18 @@ class jit_emitter : public ov::snippets::Emitter { void build_debug_info() const; static void set_local_handler(jit_emitter* emitter_address); + std::string get_type_name(const jit_emitter* emitter) const { + std::string name = typeid(*emitter).name(); +#ifndef _WIN32 + int status; + std::unique_ptr demangled_name( + abi::__cxa_demangle(name.c_str(), nullptr, nullptr, &status), + std::free); + name = demangled_name.get(); +#endif + return name; + } + // todo: remove when perf count PR merged // below 4 functions must be inline funtions to avoid corrupted rsp by function call, so defined inside class declaration. void internal_call_preamble() const { diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_load_store_emitters.cpp b/src/plugins/intel_cpu/src/emitters/x64/jit_load_store_emitters.cpp index 855b26614b9a18..540f8c4a372278 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_load_store_emitters.cpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_load_store_emitters.cpp @@ -618,7 +618,7 @@ void jit_load_emitter::register_table_entries() { } void jit_load_emitter::print_debug_info() const { - std::cerr << "ERROR is from jit_load_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where start_address:" << start_address << " current_address:" << current_address << " iteration:" << iteration << "\n"; std::cerr << "Emitter name:" << name_ << "\n"; std::cerr << "load_num_:" << load_num_ << "\n"; @@ -1309,7 +1309,7 @@ void jit_store_emitter::register_table_entries() { } void jit_store_emitter::print_debug_info() const { - std::cerr << "Segfault happens in jit_store_emitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where start_address:" << start_address << " current_address:" << current_address << " iteration:" << iteration << "\n"; std::cerr << "Emitter name:" << name_ << "\n"; std::cerr << "store_num_:" << store_num_ << "\n"; diff --git a/src/plugins/intel_cpu/src/emitters/x64/jit_snippets_emitters.cpp b/src/plugins/intel_cpu/src/emitters/x64/jit_snippets_emitters.cpp index 086e4cb63c7612..a675ec5af3b773 100644 --- a/src/plugins/intel_cpu/src/emitters/x64/jit_snippets_emitters.cpp +++ b/src/plugins/intel_cpu/src/emitters/x64/jit_snippets_emitters.cpp @@ -230,7 +230,7 @@ void KernelEmitter::emit_code(const std::vector &in, } void KernelEmitter::print_debug_info() const { - std::cerr << "ERROR is from KernelEmitter, " << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where num_inputs:" << num_inputs << " num_outputs:" << num_outputs << " num_unique_buffers:" << num_unique_buffers << " reg_indexes_idx:" << reg_indexes_idx << " reg_const_params_idx:" << reg_const_params_idx << "\n"; } @@ -372,7 +372,7 @@ LoopBeginEmitter::LoopBeginEmitter(jit_generator* h, cpu_isa_t isa, const Expres } void LoopBeginEmitter::print_debug_info() const { - std::cerr << "ERROR is from LoopBeginEmitter, " << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where evaluate_once:" << evaluate_once << " work_amount:" << work_amount << "\n"; } @@ -426,7 +426,7 @@ LoopEndEmitter::LoopEndEmitter(jit_generator* h, cpu_isa_t isa, const Expression } void LoopEndEmitter::print_debug_info() const { - std::cerr << "ERROR is from LoopEndEmitter, " << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where num_inputs:" << num_inputs << " num_outputs:" << num_outputs << " wa_increment:" << wa_increment << " work_amount:" << work_amount << " evaluate_once:" << evaluate_once << "\n"; } @@ -527,7 +527,7 @@ void BroadcastMoveEmitter::emit_isa(const std::vector &in, const std::ve } void BroadcastMoveEmitter::print_debug_info() const { - std::cerr << "ERROR is from BroadcastMoveEmitter, " << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where byte_size:" << byte_size << "\n"; } @@ -573,7 +573,7 @@ void ScalarEmitter::emit_isa(const std::vector &in, const std::vector &in, const std::ve } void BroadcastLoadEmitter::print_debug_info() const { - std::cerr << "ERROR is from BroadcastLoadEmitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } LoadConvertEmitter::LoadConvertEmitter(jit_generator* h, cpu_isa_t isa, const ExpressionPtr& expr) @@ -739,7 +739,7 @@ void LoadConvertEmitter::emit_data() const { } void LoadConvertEmitter::print_debug_info() const { - std::cerr << "ERROR is from LoadConvertEmitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } StoreConvertEmitter::StoreConvertEmitter(jit_generator* h, cpu_isa_t isa, const ExpressionPtr& expr) @@ -781,7 +781,7 @@ void StoreConvertEmitter::emit_data() const { } void StoreConvertEmitter::print_debug_info() const { - std::cerr << "ERROR is from StoreConvertEmitter." << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } size_t BrgemmEmitter::getBrgIdx(size_t kIdx, size_t nIdx) { @@ -1299,7 +1299,7 @@ void BrgemmEmitter::kernel_execute(const brgemm_kernel_t *brg_kernel, } void BrgemmEmitter::print_debug_info() const { - std::cerr << "ERROR is from BrgemmEmitter, " << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where m_M:" << m_M << " m_K:" << m_K << " m_K_blk:" << m_K_blk << " m_K_tail:" << m_K_tail << " m_N:" << m_N << " m_N_blk:" << m_N_blk << " m_N_tail:" << m_N_tail << " m_brg0VnniFactor:" << m_brg0VnniFactor << " m_N_blk_loop:" << m_N_blk_loop << " m_K_blk_loop:" << m_K_blk_loop @@ -1552,7 +1552,7 @@ void BrgemmCopyBEmitter::execute(matmul::jit_brgemm_matmul_copy_b_t *kernel, con } void BrgemmCopyBEmitter::print_debug_info() const { - std::cerr << "ERROR is from BrgemmCopyBEmitter, " << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; std::cerr << "where m_LDB:" << m_LDB << " m_K:" << m_K << " m_K_blk:" << m_K_blk << " m_K_tail:" << m_K_tail << " m_N:" << m_N << " m_N_blk:" << m_N_blk << " m_N_tail:" << m_N_tail << " m_brgemm_prc_in0:" << m_brgemm_prc_in0 << " m_brgemm_prc_in1:" << m_brgemm_prc_in1 @@ -1629,7 +1629,7 @@ void HorizonEmitter::perform_op(const Vmm &vmm1, const Vmm &vmm2, const Vmm &vmm } void HorizonEmitter::print_debug_info() const { - std::cerr << "ERROR is from HorizonEmitter" << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } FillEmitter::FillEmitter(jit_generator* h, cpu_isa_t isa, const ExpressionPtr& expr) @@ -1716,7 +1716,7 @@ void FillEmitter::fill_tail(const Vmm& src_vmm, const Vmm& dst_vmm) const { } void FillEmitter::print_debug_info() const { - std::cerr << "ERROR is from FillEmitter" << "\n"; + std::cerr << "Emitter type name:" << get_type_name(this) << "\n"; } } // namespace intel_cpu