[Beignet] [PATCH 01/12] Runtime: Fix thread id calculation.
Xiuli Pan
xiuli.pan at intel.com
Thu May 26 03:14:16 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 4caa7e7..6a9cf1f 100644
--- a/src/cl_command_queue_gen7.c
+++ b/src/cl_command_queue_gen7.c
@@ -89,7 +89,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