Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fixed static build for gcc (#25987)

Ilya Lavrenov9c0ae759ab08
diff --git a/src/core/reference/include/openvino/reference/scatter_elements_update.hpp b/src/core/reference/include/openvino/reference/scatter_elements_update.hpp
index 1b25e367f5e..2323c03b34a 100644
--- a/src/core/reference/include/openvino/reference/scatter_elements_update.hpp
+++ b/src/core/reference/include/openvino/reference/scatter_elements_update.hpp
@@ -96,7 +96,7 @@ std::function<T(const T, const T)> reduction_functor_for(
}
template <>
-std::function<char(const char, const char)> reduction_functor_for<char>(
+inline std::function<char(const char, const char)> reduction_functor_for<char>(
const ov::op::v12::ScatterElementsUpdate::Reduction reduction_type) {
switch (reduction_type) {
case ov::op::v12::ScatterElementsUpdate::Reduction::MAX:
diff --git a/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp b/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp
index fbda0b62997..6982b265833 100644
--- a/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp
+++ b/src/plugins/intel_gpu/tests/unit/test_cases/scatter_elements_update_gpu_test.cpp
@@ -4,6 +4,8 @@
#include "test_utils.h"
+#include "openvino/reference/scatter_elements_update.hpp"
+
#include <intel_gpu/primitives/input_layout.hpp>
#include <intel_gpu/primitives/scatter_elements_update.hpp>
#include <intel_gpu/runtime/memory.hpp>
@@ -15,26 +17,6 @@
using namespace cldnn;
using namespace ::tests;
-#ifdef OPENVINO_STATIC_LIBRARY
-namespace ov {
-namespace reference {
-using Reduction = ov::op::v12::ScatterElementsUpdate::Reduction;
-
-template<typename DataType, typename IndicesType>
-void scatter_elem_update(const DataType *input_data,
- const IndicesType *indices,
- const DataType *updates,
- const int64_t axis,
- DataType *out_buf,
- const Shape &data_shape,
- const Shape &indices_shape,
- const Reduction reduction_type = Reduction::NONE,
- const bool use_init_val = true);
-}
-}
-#else
-#include "openvino/reference/scatter_elements_update.hpp"
-#endif
template <typename T>
void test_d2411_axisF(bool is_caching_test) {