From 810efc90d80642411b4e96042a9ef0e8b2b6cd03 Mon Sep 17 00:00:00 2001 From: Damian Kurek Date: Mon, 2 Sep 2024 09:42:19 +0200 Subject: [PATCH] [GPU] Add reqd_work_group_size attribute to softmax bf kernel (#26345) ### Details: - Add reqd_work_group_size attribute to softmax bf kernel - Slight performance improvement ### Tickets: - 151211 --- .../intel_gpu/src/kernel_selector/cl_kernels/softmax_gpu_bf.cl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/softmax_gpu_bf.cl b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/softmax_gpu_bf.cl index 990da1509558bd..143d8cd908dd40 100644 --- a/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/softmax_gpu_bf.cl +++ b/src/plugins/intel_gpu/src/kernel_selector/cl_kernels/softmax_gpu_bf.cl @@ -35,6 +35,9 @@ #endif +#if !IS_DYNAMIC +__attribute__((reqd_work_group_size(LWS, 1, 1))) +#endif REQD_SUB_GROUP_SIZE(SUB_GROUP_SIZE) KERNEL (softmax_gpu_continuous_bfyx)( OPTIONAL_SHAPE_INFO_ARG