[Beignet] [PATCH 1/4] Runtime: Fix thread id calculation.
Xiuli Pan
xiuli.pan at intel.com
Mon May 16 01:55:20 UTC 2016
From: Pan Xiuli <xiuli.pan at intel.com>
Sould use curr with simd_sz to get thread simd_sz
Signed-off-by: Pan Xiuli <xiuli.pan 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 1921744..f6ee6b0 100644
--- a/src/cl_command_queue_gen7.c
+++ b/src/cl_command_queue_gen7.c
@@ -87,7 +87,7 @@ cl_set_varying_payload(const cl_kernel ker,
ids[2][curr] = k;
block_ips[curr] = 0;
if (thread_ids)
- thread_ids[curr/simd_sz] = (k*local_wk_sz[2] + j*local_wk_sz[1] + i)/simd_sz;
+ thread_ids[curr/simd_sz] = curr/simd_sz;
}
/* Copy them to the curbe buffer */
--
2.7.4
More information about the Beignet
mailing list