diff --git a/src/plugins/intel_gpu/src/graph/impls/cpu/assign.cpp b/src/plugins/intel_gpu/src/graph/impls/cpu/assign.cpp index 031ff30cf725ac..3d18e359285a91 100644 --- a/src/plugins/intel_gpu/src/graph/impls/cpu/assign.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/cpu/assign.cpp @@ -38,7 +38,9 @@ struct assign_impl : public typed_primitive_impl { void init_kernels() override {} public: - static primitive_impl* create(assign_node const& arg) { return new assign_impl{}; } + static primitive_impl* create(const assign_node& arg, std::shared_ptr impl_param) { + return new assign_impl{}; + } }; diff --git a/src/plugins/intel_gpu/src/graph/impls/cpu/read_value.cpp b/src/plugins/intel_gpu/src/graph/impls/cpu/read_value.cpp index 6fa28707ed3867..a213906dc970a0 100644 --- a/src/plugins/intel_gpu/src/graph/impls/cpu/read_value.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/cpu/read_value.cpp @@ -39,7 +39,9 @@ struct read_value_impl : public typed_primitive_impl { void init_kernels() override {} public: - static primitive_impl* create(read_value_node const& arg) { return new read_value_impl{}; } + static primitive_impl* create(const read_value_node& arg, std::shared_ptr impl_param) { + return new read_value_impl{}; + } }; namespace detail { diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/adaptive_pooling.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/adaptive_pooling.cpp index 84a9fde6f0fd50..35e06fb78c35fd 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/adaptive_pooling.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/adaptive_pooling.cpp @@ -35,8 +35,8 @@ struct adaptive_pooling_impl : public typed_primitive_impl_ocl } public: - static primitive_impl* create(const adaptive_pooling_node& arg) { - auto params = get_default_params(arg); + static primitive_impl* create(const adaptive_pooling_node& arg, std::shared_ptr impl_param) { + auto params = get_default_params(*impl_param); auto optional_params = get_default_optional_params(arg.get_program()); const auto& primitive = arg.get_primitive(); diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/bucketize.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/bucketize.cpp index ddf972fd77b182..8e49e7e9c2fd15 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/bucketize.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/bucketize.cpp @@ -24,8 +24,8 @@ struct bucketize_impl : typed_primitive_impl_ocl { return make_unique(*this); } - static primitive_impl* create(const bucketize_node& arg) { - auto params = get_default_params(arg); + static primitive_impl* create(const bucketize_node& arg, std::shared_ptr impl_param) { + auto params = get_default_params(*impl_param); auto optional_params = get_default_optional_params(arg.get_program()); diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/dft.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/dft.cpp index ed3e69cbea1a90..9580155bc118c4 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/dft.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/dft.cpp @@ -22,8 +22,8 @@ struct dft_impl : typed_primitive_impl_ocl { return make_unique(*this); } - static primitive_impl* create(const dft_node& arg) { - auto params = get_default_params(arg); + static primitive_impl* create(const dft_node& arg, std::shared_ptr impl_param) { + auto params = get_default_params(*impl_param); auto primitive = arg.get_primitive(); params.axes = primitive->axes; if (primitive->kind == dft_kind::inverse) { diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_detection_output.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_detection_output.cpp index 57d57b47ef3545..ac529fe4c30efe 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_detection_output.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_detection_output.cpp @@ -31,8 +31,8 @@ struct experimental_detectron_detection_output_impl } public: - static primitive_impl* create(const experimental_detectron_detection_output_node& arg) { - auto params = get_default_params(arg); + static primitive_impl* create(const experimental_detectron_detection_output_node& arg, std::shared_ptr impl_param) { + auto params = get_default_params(*impl_param); auto optional_params = get_default_optional_params( arg.get_program()); diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_generate_proposals_single_image.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_generate_proposals_single_image.cpp index 3fa8265c34d174..430ca1149505d7 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_generate_proposals_single_image.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_generate_proposals_single_image.cpp @@ -37,8 +37,8 @@ struct experimental_detectron_generate_proposals_single_image_impl } public: - static primitive_impl* create(const experimental_detectron_generate_proposals_single_image_node& arg) { - auto params = get_default_params(arg); + static primitive_impl* create(const experimental_detectron_generate_proposals_single_image_node& arg, std::shared_ptr impl_param) { + auto params = get_default_params(*impl_param); auto optional_params = get_default_optional_params< kernel_selector::experimental_detectron_generate_proposals_single_image_optional_params>(arg.get_program()); diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_prior_grid_generator.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_prior_grid_generator.cpp index a0b3d373aa9835..73f15315b0fb7d 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_prior_grid_generator.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/experimental_detectron_prior_grid_generator.cpp @@ -26,8 +26,8 @@ struct experimental_detectron_prior_grid_generator_impl return make_unique(*this); } - static primitive_impl* create(const experimental_detectron_prior_grid_generator_node& arg) { - auto params = get_default_params(arg); + static primitive_impl* create(const experimental_detectron_prior_grid_generator_node& arg, std::shared_ptr impl_param) { + auto params = get_default_params(*impl_param); auto primPtr = arg.get_primitive(); auto& prim = *primPtr; diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/reverse.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/reverse.cpp index 2529756c7e47ab..f7ecf729353c56 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/reverse.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/reverse.cpp @@ -24,8 +24,8 @@ struct reverse_impl : typed_primitive_impl_ocl { } public: - static primitive_impl* create(const reverse_node& arg) { - auto params = get_default_params(arg); + static primitive_impl* create(const reverse_node& arg, std::shared_ptr impl_param) { + auto params = get_default_params(*impl_param); const auto optional_params = get_default_optional_params(arg.get_program()); diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl/roll.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl/roll.cpp index 113d9fe1535baa..0e0a3e79b2566f 100644 --- a/src/plugins/intel_gpu/src/graph/impls/ocl/roll.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/ocl/roll.cpp @@ -24,8 +24,8 @@ struct roll_impl : typed_primitive_impl_ocl { return make_unique(*this); } - static primitive_impl* create(const roll_node& arg) { - auto roll_params = get_default_params(arg); + static primitive_impl* create(const roll_node& arg, std::shared_ptr impl_param) { + auto roll_params = get_default_params(*impl_param); auto roll_optional_params = get_default_optional_params(arg.get_program()); diff --git a/src/plugins/intel_gpu/src/graph/impls/onednn/reduction_onednn.cpp b/src/plugins/intel_gpu/src/graph/impls/onednn/reduction_onednn.cpp index 776943567734e9..79ccc00a99caf0 100644 --- a/src/plugins/intel_gpu/src/graph/impls/onednn/reduction_onednn.cpp +++ b/src/plugins/intel_gpu/src/graph/impls/onednn/reduction_onednn.cpp @@ -63,7 +63,7 @@ struct reduction_onednn : typed_primitive_onednn_impl) { auto& engine = arg.get_program().get_engine(); auto desc = get_reduction_descriptor(arg); auto attr = arg.get_onednn_primitive_attributes(); diff --git a/src/plugins/intel_gpu/src/graph/include/primitive_type.h b/src/plugins/intel_gpu/src/graph/include/primitive_type.h index 5b8aff21231acc..61c5aca5bb130e 100644 --- a/src/plugins/intel_gpu/src/graph/include/primitive_type.h +++ b/src/plugins/intel_gpu/src/graph/include/primitive_type.h @@ -6,7 +6,7 @@ #pragma once #include "intel_gpu/runtime/layout.hpp" - +#include "kernel_selector_helper.h" #include #include diff --git a/src/plugins/intel_gpu/src/graph/layout_optimizer.cpp b/src/plugins/intel_gpu/src/graph/layout_optimizer.cpp index 89aa24e9977dfa..79343ae2552140 100644 --- a/src/plugins/intel_gpu/src/graph/layout_optimizer.cpp +++ b/src/plugins/intel_gpu/src/graph/layout_optimizer.cpp @@ -822,7 +822,7 @@ static bool is_node_for_onednn(program_node& node, fully_connected_node const& f bool is_suitable_for_onednn = true; auto out_layout = node.get_output_layout(); for (auto& fo : node.get_fused_primitives()) { - if (fo.node->is_type()) { + if (fo.is_type()) { // FC checkings auto in_layout = node.get_dependency(fo.dep_start_idx).get_output_layout(); auto in_dt = in_layout.data_type; diff --git a/src/plugins/intel_gpu/src/graph/program_node.cpp b/src/plugins/intel_gpu/src/graph/program_node.cpp index 0ef4a4ac85ce9f..e1c9ee89575e07 100644 --- a/src/plugins/intel_gpu/src/graph/program_node.cpp +++ b/src/plugins/intel_gpu/src/graph/program_node.cpp @@ -899,7 +899,6 @@ void program_node::init_onednn_primitive_attributes() { update_onednn_post_op_list(onednn_post_op_type::eltwise_act, empty_mem); } } else if (desc.is_type()) { - //auto& e_node = node->as(); auto dep_idx = desc.dep_start_idx; auto in = get_dependency(dep_idx).get_output_layout(); @@ -932,7 +931,6 @@ void program_node::init_onednn_primitive_attributes() { } } } else if (desc.is_type()) { -// auto& q_node = node->as(); auto dep_idx = desc.dep_start_idx; // ********************************* Common case with output range usage ********************************* //