Skip to content

Commit

Permalink
[GPU] Fix not to check _dynamic_dims_mask when get_from_padded_pool() (
Browse files Browse the repository at this point in the history
…#27120)

### Details:
 - Fix not to check _dynamic_dims_mask when get_from_padded_pool()

### Tickets:
 - 154329
 - 155099
 - 154137
  • Loading branch information
wilson-seok authored Oct 21, 2024
1 parent b785e6e commit 2e25c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/include/intel_gpu/runtime/layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ struct padding {
}

friend bool operator<(const padding& lhs, const padding& rhs) {
OPENVINO_ASSERT(!lhs.is_dynamic() && !rhs.is_dynamic(), "[GPU] padding compare is called for dynamic shape");
// Compare only actual padding size not _dynamic_dims_mask
if (lhs._lower_size < rhs._lower_size) return true;
else if (lhs._lower_size > rhs._lower_size) return false;
if (lhs._upper_size < rhs._upper_size) return true;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/src/runtime/memory_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ memory::ptr memory_pool::get_memory(const layout& layout,
}
if (do_reuse) {
// reusable within the same network
if (!layout.format.is_image() && layout.data_padding == padding{{0, 0, 0, 0}, 0}) {
if (!layout.format.is_image() && !layout.data_padding) {
// non-padded buffers
return get_from_non_padded_pool(layout, prim_id, unique_id, network_id, restrictions, type, reset, is_dynamic);
} else if (!layout.format.is_image()) {
Expand Down

0 comments on commit 2e25c87

Please sign in to comment.