[Beignet] [PATCH] fix typo when check local size with work dim

Guo Yejun yejun.guo at intel.com
Thu Apr 24 12:22:19 PDT 2014


Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
 src/cl_command_queue_gen7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cl_command_queue_gen7.c b/src/cl_command_queue_gen7.c
index 891d6f1..90e275d 100644
--- a/src/cl_command_queue_gen7.c
+++ b/src/cl_command_queue_gen7.c
@@ -274,7 +274,7 @@ cl_command_queue_ND_range_gen7(cl_command_queue queue,
   kernel.use_slm = gbe_kernel_use_slm(ker->opaque);
 
   /* Compute the number of HW threads we need */
-  TRY (cl_kernel_work_group_sz, ker, local_wk_sz, 3, &local_sz);
+  TRY (cl_kernel_work_group_sz, ker, local_wk_sz, work_dim, &local_sz);
   kernel.thread_n = thread_n = (local_sz + simd_sz - 1) / simd_sz;
   kernel.curbe_sz = cst_sz;
 
-- 
1.8.3.2



More information about the Beignet mailing list