libocl: enable llvm5.0 support

Graphics / Beignet - Yang Rong [intel.com] - 21 September 2017 05:43 EDT

There are 2 changes: 1. enable cl_khr_3d_image_writes, llvm5.0 required. 2. change enqueue_ndrange functions and ndrange_t type for llvm5.0.

4aa4acc libocl: enable llvm5.0 support.
backend/src/libocl/include/ocl_enqueue.h | 35 +++++++++++++++------
backend/src/libocl/include/ocl_image.h | 2 ++
backend/src/libocl/src/ocl_enqueue.cl | 54 +++++++++++++++++++-------------
3 files changed, 59 insertions(+), 32 deletions(-)

Upstream: cgit.freedesktop.org


  • Share