Skip to content

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

[GPU] Fix L0 build warnings (#35654)

Jakub Kasprzak373af5f9d902
diff --git a/src/plugins/intel_gpu/src/runtime/ze/ze_memory.hpp b/src/plugins/intel_gpu/src/runtime/ze/ze_memory.hpp
index 0cae79467aa..271d26e928a 100644
--- a/src/plugins/intel_gpu/src/runtime/ze/ze_memory.hpp
+++ b/src/plugins/intel_gpu/src/runtime/ze/ze_memory.hpp
@@ -177,7 +177,7 @@ struct gpu_image2d : public lockable_gpu_mem, public memory {
void unlock(const stream& stream) override;
event::ptr fill(stream& stream, unsigned char pattern, const std::vector<event::ptr>& dep_events = {}, bool blocking = true) override;
shared_mem_params get_internal_params() const override;
- const ze_image_handle_t get_handle() const {
+ ze_image_handle_t get_handle() const {
OPENVINO_ASSERT(0 == _lock_count, "[GPU] Cannot get image handle when memory is locked");
return _image->get_handle();
}