Skip to content

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

[GPU] Implicit int fix (#31785)

Pavel Durandin7c39065a683d
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.cl b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.cl
index deb21240296..85617f887d5 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.cl
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.cl
@@ -223,8 +223,8 @@ KERNEL(pa_sdpa_opt)(
const uint hidden_stride = ADJUSTED_PAGED_ATTENTION_BLOCK_SIZE;
#else
const uint block_offset = block_indice * ADJUSTED_K_HEAD_SIZE * KV_HEADS_NUM * SUBGROUP_SIZE + head_idx * ADJUSTED_K_HEAD_SIZE * SUBGROUP_SIZE;
- const key_block_offset = block_offset;
- const hidden_stride = SUBGROUP_SIZE;
+ const uint key_block_offset = block_offset;
+ const uint hidden_stride = SUBGROUP_SIZE;
const uint key_comp_offset = key_block_offset + K_HEAD_SIZE * PAGED_ATTENTION_BLOCK_SIZE;
INPUT0_TYPE* key_comp_ptr = key_cache + key_comp_offset;
INPUT0_TYPE comp_scale = key_comp_ptr[0 + sglid];