Skip to content

Commit 5c1e1fb

Browse files
author
Vladimir Paramuzov
authored
[GPU] Extract debug code from network::execute() (#26888)
### Details: - Debug code in network::execute() method is extracted to separate class/file to improve code readability
1 parent 2fc0fae commit 5c1e1fb

File tree

6 files changed

+623
-528
lines changed

6 files changed

+623
-528
lines changed

src/plugins/intel_gpu/include/intel_gpu/graph/network.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44

55
#pragma once
66

7-
#include "openvino/runtime/threading/cpu_streams_executor.hpp"
7+
#include "openvino/runtime/threading/istreams_executor.hpp"
88

99
#include "intel_gpu/graph/topology.hpp"
1010
#include "intel_gpu/graph/program.hpp"
1111
#include "intel_gpu/graph/serialization/binary_buffer.hpp"
12-
#include "intel_gpu/runtime/compounds.hpp"
1312
#include "intel_gpu/runtime/memory.hpp"
1413
#include "intel_gpu/runtime/engine.hpp"
1514
#include "intel_gpu/runtime/event.hpp"
1615
#include "intel_gpu/runtime/stream.hpp"
17-
#include "intel_gpu/runtime/lru_cache.hpp"
1816
#include "intel_gpu/runtime/shape_predictor.hpp"
1917
#include "intel_gpu/plugin/variable_state.hpp"
2018

@@ -211,7 +209,7 @@ struct network {
211209
bool is_dynamic() const { return _is_dynamic; }
212210
size_t get_weights_cache_capacity() const { return _weights_cache_capacity; }
213211

214-
memory_pool& get_memory_pool() {
212+
memory_pool& get_memory_pool() const {
215213
return *_memory_pool;
216214
}
217215

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

286284
#ifdef GPU_DEBUG_CONFIG
287-
int64_t iteration = 0;
285+
mutable int64_t iteration = 0;
286+
friend class NetworkDebugHelper;
287+
friend class NodeDebugHelper;
288288
#endif
289289
};
290290
} // namespace cldnn

0 commit comments

Comments
 (0)