Skip to content

Commit

Permalink
[GPU] Extract debug code from network::execute() (#26888)
Browse files Browse the repository at this point in the history
### Details:
- Debug code in network::execute() method is extracted to separate
class/file to improve code readability
  • Loading branch information
vladimir-paramuzov authored Oct 3, 2024
1 parent 2fc0fae commit 5c1e1fb
Show file tree
Hide file tree
Showing 6 changed files with 623 additions and 528 deletions.
10 changes: 5 additions & 5 deletions src/plugins/intel_gpu/include/intel_gpu/graph/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@

#pragma once

#include "openvino/runtime/threading/cpu_streams_executor.hpp"
#include "openvino/runtime/threading/istreams_executor.hpp"

#include "intel_gpu/graph/topology.hpp"
#include "intel_gpu/graph/program.hpp"
#include "intel_gpu/graph/serialization/binary_buffer.hpp"
#include "intel_gpu/runtime/compounds.hpp"
#include "intel_gpu/runtime/memory.hpp"
#include "intel_gpu/runtime/engine.hpp"
#include "intel_gpu/runtime/event.hpp"
#include "intel_gpu/runtime/stream.hpp"
#include "intel_gpu/runtime/lru_cache.hpp"
#include "intel_gpu/runtime/shape_predictor.hpp"
#include "intel_gpu/plugin/variable_state.hpp"

Expand Down Expand Up @@ -211,7 +209,7 @@ struct network {
bool is_dynamic() const { return _is_dynamic; }
size_t get_weights_cache_capacity() const { return _weights_cache_capacity; }

memory_pool& get_memory_pool() {
memory_pool& get_memory_pool() const {
return *_memory_pool;
}

Expand Down Expand Up @@ -284,7 +282,9 @@ struct network {
void dump_memory_pool(std::string dump_path, int64_t curr_iter);

#ifdef GPU_DEBUG_CONFIG
int64_t iteration = 0;
mutable int64_t iteration = 0;
friend class NetworkDebugHelper;
friend class NodeDebugHelper;
#endif
};
} // namespace cldnn
Loading

0 comments on commit 5c1e1fb

Please sign in to comment.