debug
This commit is contained in:
parent
d78f7e7fc6
commit
1ca78f643e
@ -10,17 +10,32 @@
|
||||
#define DEBUG_USE_NEW_PASS 1
|
||||
|
||||
#undef DEBUG_VISUALIZE
|
||||
//#define DEBUG_VISUALIZE 1
|
||||
#define DEBUG_VISUALIZE 1
|
||||
#undef DEBUG_VISUALIZETREE
|
||||
//#define DEBUG_VISUALIZETREE 1
|
||||
|
||||
#define EMUTEX_DEBUG_CHECKPOINT std::cout << "[EMUTEX DEBUG] CHECKPOINT " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
#define EMUTEX_DEBUG_CHECKPOINT_MESSAGE(message) std::cout << "[EMUTEX DEBUG] CHECKPOINT " << __FILE__ << ":" << __LINE__ << \
|
||||
" " << message << std::endl;
|
||||
#define EMUTEX_DEBUG_VALUE(value) std::cout << "[EMUTEX DEBUG] " << __FILE__ << ":" << __LINE__ << " " << #value << " = " << (value) << std::endl;
|
||||
#define EMUTEX_DEBUG_VALUE(value) std::cout << "[EMUTEX DEBUG] " << __FILE__ << ":" << __LINE__ << " " << #value << " = " << value << std::endl;
|
||||
|
||||
#include "openvino/pass/manager.hpp"
|
||||
|
||||
namespace intel_gna_debug {
|
||||
void DebugVisualize(ov::pass::Manager& manager, const std::string& name);
|
||||
} // namespace intel_gna_debug
|
||||
|
||||
template <typename T>
|
||||
std::ostream& operator<<(std::ostream& os, const std::vector<T>& vec)
|
||||
{
|
||||
os << "{";
|
||||
for (size_t i = 0; i < vec.size(); ++i) {
|
||||
if (i)
|
||||
os << ", ";
|
||||
os << i;
|
||||
}
|
||||
os << "}";
|
||||
return os;
|
||||
}
|
||||
|
||||
#define EMUTEX_DEBUG_VISUALIZE(name) intel_gna_debug::DebugVisualize(manager, name);
|
||||
|
Loading…
Reference in New Issue
Block a user