Skip to content

Commit a45d2d1

Browse files
authored
[GHA][GPU] Build fix (#34022)
GHA build stage for ASAN fails with unused variable warning.
1 parent c2459fc commit a45d2d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/intel_gpu/src/runtime/memory_pool.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ memory::ptr memory_pool::get_from_non_padded_pool(const layout& layout,
171171
bool reset,
172172
bool is_dynamic) {
173173
const auto layout_bytes_count = layout.bytes_count();
174+
#ifdef ENABLE_ONEDNN_FOR_GPU
174175
const int f_block_size = get_feature_block_size(layout.format);
176+
#endif // ENABLE_ONEDNN_FOR_GPU
175177
auto it = _non_padded_pool.lower_bound(layout_bytes_count);
176178
while (it != _non_padded_pool.end()) {
177179
const auto& mem_layout = it->second._memory->get_layout();
@@ -221,7 +223,9 @@ memory::ptr memory_pool::get_from_padded_pool(const layout& layout,
221223
uint32_t network_id,
222224
const memory_restricter<uint32_t>& restrictions,
223225
allocation_type type) {
226+
#ifdef ENABLE_ONEDNN_FOR_GPU
224227
const int f_block_size = get_feature_block_size(layout.format);
228+
#endif // ENABLE_ONEDNN_FOR_GPU
225229
auto first_level_cache = _padded_pool.find(layout);
226230
if (first_level_cache != _padded_pool.end()) {
227231
for (auto& rec_list : first_level_cache->second) {

0 commit comments

Comments
 (0)