forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate verbose print and segfault detector, decorator jit_debug_emi…
…tter for scalable
- Loading branch information
1 parent
8b17c19
commit 6973772
Showing
17 changed files
with
522 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
src/plugins/intel_cpu/src/emitters/snippets/x64/jit_debug_emitter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Copyright (C) 2018-2023 Intel Corporation | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
#ifdef SNIPPETS_DEBUG_CAPS | ||
|
||
#include "jit_debug_emitter.hpp" | ||
#include <vector> | ||
#include "utils/general_utils.h" | ||
|
||
using namespace dnnl::impl::cpu; | ||
using namespace dnnl::impl; | ||
using namespace Xbyak; | ||
|
||
namespace ov { | ||
namespace intel_cpu { | ||
|
||
size_t jit_debug_emitter::get_inputs_num() const { | ||
return m_target_emitter->get_inputs_num(); | ||
} | ||
|
||
size_t jit_debug_emitter::get_max_vecs_count() const { | ||
return m_target_emitter->get_max_vecs_count(); | ||
} | ||
|
||
size_t jit_debug_emitter::get_vec_length() const { | ||
return m_target_emitter->get_vec_length(); | ||
} | ||
|
||
void jit_debug_emitter::push_vec(const Xbyak::Address &addr, size_t vec_idx) const { | ||
m_target_emitter->push_vec(addr, vec_idx); | ||
} | ||
|
||
void jit_debug_emitter::pop_vec(size_t vec_idx, const Xbyak::Address &addr) const { | ||
m_target_emitter->pop_vec(vec_idx, addr); | ||
} | ||
|
||
size_t jit_debug_emitter::aux_vecs_count() const { | ||
return m_target_emitter->aux_vecs_count(); | ||
} | ||
|
||
emitter_in_out_map jit_debug_emitter::get_in_out_type() const { | ||
return m_target_emitter->get_in_out_type(); | ||
} | ||
|
||
size_t jit_debug_emitter::aux_gprs_count() const { | ||
return m_target_emitter->aux_gprs_count(); | ||
} | ||
|
||
std::set<std::vector<element::Type>> jit_debug_emitter::get_supported_precisions(const std::shared_ptr<ov::Node>& node) { | ||
return jit_emitter::get_supported_precisions(node); | ||
} | ||
|
||
void jit_debug_emitter::emitter_preamble(const std::vector<size_t> &in_idxs, const std::vector<size_t> &out_idxs, | ||
const std::vector<size_t> &pool_vec_idxs, const std::vector<size_t> &pool_gpr_idxs) const { | ||
m_target_emitter->emitter_preamble(in_idxs, out_idxs, pool_vec_idxs, pool_gpr_idxs); | ||
} | ||
|
||
void jit_debug_emitter::emitter_postamble() const { | ||
m_target_emitter->emitter_postamble(); | ||
} | ||
|
||
void jit_debug_emitter::emit_data() const { | ||
m_target_emitter->emit_data(); | ||
} | ||
|
||
void jit_debug_emitter::prepare_table() { | ||
m_target_emitter->prepare_table(); | ||
} | ||
|
||
void jit_debug_emitter::emit_code(const std::vector<size_t> &in_idxs, const std::vector<size_t> &out_idxs, | ||
const std::vector<size_t> &pool_vec_idxs, const std::vector<size_t> &pool_gpr_idxs) const { | ||
m_decorator_emitter->emit_code(in_idxs, out_idxs, pool_vec_idxs, pool_gpr_idxs); | ||
|
||
m_target_emitter->emit_code(in_idxs, out_idxs, pool_vec_idxs, pool_gpr_idxs); | ||
} | ||
|
||
void jit_debug_emitter::internal_call_preamble() const { | ||
m_target_emitter->internal_call_preamble(); | ||
} | ||
|
||
void jit_debug_emitter::internal_call_postamble() const { | ||
m_target_emitter->internal_call_postamble(); | ||
} | ||
|
||
void jit_debug_emitter::internal_call_rsp_align() const { | ||
m_target_emitter->internal_call_rsp_align(); | ||
} | ||
|
||
void jit_debug_emitter::internal_call_rsp_restore() const { | ||
m_target_emitter->internal_call_rsp_restore(); | ||
} | ||
|
||
} // namespace intel_cpu | ||
} // namespace ov | ||
|
||
#endif |
Oops, something went wrong.