Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 219ebb1

Browse files
committedDec 24, 2024·
Complete to run benchmark_app f32 for resample cpu impl
1 parent 0f00606 commit 219ebb1

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed
 

‎src/plugins/intel_gpu/src/graph/impls/ocl/resample.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "impls/registry/implementation_manager.hpp"
66
#include "program_node.h"
77
//#include "intel_gpu/primitives/resample.hpp"
8+
#include "resample_inst.h"
89

910
#include <memory>
1011
namespace cldnn {

‎src/plugins/intel_gpu/src/graph/impls/registry/resample_impls.cpp

+12-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ const std::vector<std::shared_ptr<cldnn::ImplementationManager>>& Registry<resam
3737
// [](const cldnn::program_node& node){
3838
// return false;
3939
// })
40-
4140
OV_GPU_GET_INSTANCE_CPU(resample, shape_types::static_shape,
4241
[](const cldnn::program_node& node){
4342
return true;
@@ -46,6 +45,18 @@ const std::vector<std::shared_ptr<cldnn::ImplementationManager>>& Registry<resam
4645
// [](const cldnn::program_node& node){
4746
// return false;
4847
// })
48+
49+
50+
// OV_GPU_GET_INSTANCE_OCL(resample, shape_types::static_shape, not_in_shape_flow())
51+
// OV_GPU_GET_INSTANCE_OCL(resample, shape_types::dynamic_shape, not_in_shape_flow())
52+
// OV_GPU_GET_INSTANCE_CPU(resample, shape_types::static_shape, in_shape_flow())
53+
// OV_GPU_GET_INSTANCE_CPU(resample, shape_types::dynamic_shape, in_shape_flow())
54+
55+
56+
// OV_GPU_CREATE_INSTANCE_OCL(ocl::ResampleImplementationManager, shape_types::static_shape, not_in_shape_flow())
57+
// //OV_GPU_CREATE_INSTANCE_OCL(ocl::ResampleImplementationManager, shape_types::dynamic_shape, not_in_shape_flow())
58+
// OV_GPU_GET_INSTANCE_CPU(resample, shape_types::static_shape, in_shape_flow())
59+
// //OV_GPU_GET_INSTANCE_CPU(resample, shape_types::dynamic_shape, in_shape_flow())
4960
};
5061

5162
return impls;

‎src/plugins/intel_gpu/src/graph/include/primitive_type_base.h

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ struct primitive_type_base : primitive_type {
4646

4747
std::shared_ptr<ImplementationManager> choose_impl(const program_node& node, shape_types requested_shape_type) const override {
4848
OPENVINO_ASSERT(node.type() == this, "[GPU] primitive_type_base::choose_impl: primitive type mismatch");
49+
// if (node.id().find("interpolate:Interpolate") != std::string::npos)
50+
// std::cout << "=============================================" << node.id() << std::endl;
4951
for (auto& impl : get_supported_implementations(node)) {
5052
impl_types impl_type = impl->get_impl_type();
5153
if ((node.get_forced_impl_type() & impl_type) != impl_type)
@@ -58,6 +60,7 @@ struct primitive_type_base : primitive_type {
5860
if ((requested_shape_type & supported_shape_type) != requested_shape_type && requested_shape_type != shape_types::any)
5961
continue;
6062

63+
// std::cout << "=== choose_impl " << node.id() << ", impl_type=" << impl_type << std::endl;
6164
return impl;
6265
}
6366
return nullptr;

‎src/plugins/intel_gpu/src/graph/primitive_inst.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,10 @@ void primitive_inst::prepare_primitive() {
17921792
}
17931793
GPU_DEBUG_TRACE_DETAIL << "-----------------------------------------------------------------" << std::endl;
17941794

1795+
// if (this->get_node().id().find("__module.depth_head.scratch.refinenet1/aten::upsample_bilinear2d/Interpolate") != std::string::npos) {
1796+
// std::cout << "=============" << std::endl;
1797+
// std::cout << "=============primitive_inst::prepare_primitive() " << this->get_node().id() << ", impl_type=" << this->_impl->m_manager->get_impl_type() << std::endl;
1798+
// }
17951799
// If it is optimized out or skipped for zero dimension at the previous iteration,
17961800
// Set this flag true to reset output memory in realloc_if_needed.
17971801
const bool prev_execution_skipped = can_be_optimized()
@@ -1972,6 +1976,9 @@ void primitive_inst::execute() {
19721976

19731977
set_out_event(_impl->execute(_impl_params->dep_events, *this));
19741978

1979+
// if (this->get_node().id().find("__module.depth_head.scratch.refinenet1/aten::upsample_bilinear2d/Interpolate") != std::string::npos)
1980+
// std::cout << "=============primitive_inst::execute() " << this->get_node().id() << ", impl_type=" << this->_impl->m_manager->get_impl_type() << std::endl;
1981+
19751982
GPU_DEBUG_GET_INSTANCE(debug_config);
19761983
GPU_DEBUG_IF(!debug_config->dump_profiling_data.empty()) {
19771984
auto ev = _impl_params->out_event;

0 commit comments

Comments
 (0)
Please sign in to comment.