libocl: Add three work-item built-in function

Graphics / Beignet - Pan Xiuli [intel.com] - 9 December 2015 21:45 UTC

Add get global/local linear id by calculate with global/local id, size and offset. The get_queue_local_size() and get_loal_size() should be different when the global work group size is not uniform, but now they are the same. We will refine these functions when we support non-uniform work-group size.

8ce59f4 libocl: Add three work-item built-in function
backend/src/libocl/include/ocl_workitem.h | 3 +++
backend/src/libocl/src/ocl_workitem.cl | 30 +++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)

Upstream: cgit.freedesktop.org


  • Share