Intel OpenCL

Using Shared Context for Multiple OpenCL™ Devices

Intel OpenCL™ implementation features Common Runtime, which enables you to interface with the Intel® Graphics and the CPU devices using a single context.

You can create a “shared” context with both devices. Commands, resource sharing and synchronization instructions on the different devices should follow the OpenCL specification requirements.

Work-Group Level Parallelism

Since work-groups are independent, they can execute concurrently on different hardware threads. So the number of work-groups should be not less than the number of logical cores. A larger number of work-groups results in more flexibility in scheduling, at the cost of task-switching overhead.

OpenCL™ Standard

OpenCL™ (Open Computing Language) standard provides a uniform programming environment for software developers to write portable general-purpose parallel code for high-performance computing servers, client computer systems, and other computing systems. OpenCL is developed by multiple companies through the Khronos* OpenCL committee, and Intel is a key contributor to the OpenCL standard since its inception.

Intel OpenCL implementation targets Intel® Xeon® processors and Intel Xeon Phi™ coprocessors.

Use Built-In Functions

OpenCL™ offers a library of built-in functions, including vector variants. For details, see the OpenCL 1.2 Specification.

Using built-in functions is typically more efficient than using their manual implementation in OpenCL code. Consider the following code example:

About this Document

This Reference Manual provides basic introduction to OpenCL™ features supported by the OpenCL™ Runtime for Intel® Xeon Phi™ coprocessors and Intel® Xeon® processors.

The document comprises the following:

Subscribe to Intel OpenCL