Achieving performance with OpenCL 2.0 on Intel® processor graphics

Authors:

Abstract
OpenCL 2.0 is here, supported for the first time on the 5th Generation Intel ® Core Processors with Intel ® Processor Graphics. We are going to talk about the things we have learned in the past year developing workloads for OpenCL 2.0 and speedups achieved over comparable OpenCL 1.2 implementations. We are going to cover the following features of OpenCL 2.0 supported in our released driver: 1. Shared Virtual Memory provides the capability to create SVM buffers (coarse-grained and fine-grained) and sharing pointers between host and device without the need to create device memory objects and eliminating the need to perform data copying between the device and the host. SVM enhances programming experience and improves performance. We will discuss ways of SVM buffer allocation, how SVM buffers interact with devices, synchronizations methods and ways to maintain memory consistency. There are number of new API calls added to OpenCL 2.0 specification, which were designed to support this new feature and to perform the above mentioned tasks. The advantages of SVM will be showcased with the help of samples. 2. Nested Parallelism allows GPU kernels to enqueue other GPU kernels or self-enqueue without any interaction with the CPU host. We are going to present GPU-Quicksort for OpenCL 2.0, a high performance example that benefits from nested parallelism and work group functions; in our experience, nested parallelism allows developers to develop high performance iterative and recursive algorithms and allows to move housekeeping and scheduling operations previously reserved for the CPU to the GPU. 3. Work-group scan/reduce functions facilitate scan and reduce operations across work-items of a work-group; these functions are correct, performant and heavily optimized for Intel Architecture, they simplify your code and improve performance.