OpenCL (Open Computing Language) is a framework for writing programs that execute across heterogeneous platforms consisting of CPUs, GPUs, and other processors. OpenCL includes a language (based on C99) for writing kernels (functions that execute on OpenCL devices), plus APIs that are used to define and then control the heterogeneous platform. OpenCL provides parallel programming using both task-based and data-based parallelism.
The purpose of OpenCL is analogous to that of OpenGL and OpenAL, which are open industry standards for 3D graphics and computer audio respectively. OpenCL extends the power of the GPU beyond graphics (GPGPU). OpenCL is managed by the non-profit technology consortium Khronos Group.
OpenCL was initially developed by Apple Inc., which holds trademark rights, and refined into an initial proposal in collaboration with technical teams at AMD, Intel and Nvidia. Apple submitted this initial proposal to the Khronos Group. On June 16, 2008 the Khronos Compute Working Group was formed with representatives from CPU, GPU, embedded-processor, and software companies. This group worked for five months to finish the technical details of the specification for OpenCL 1.0 by November 18, 2008. This technical specification was reviewed by the Khronos members and approved for public release on December 8, 2008.
OpenCL 1.0 is scheduled to be introduced in Mac OS X v10.6 ('Snow Leopard'). According to an Apple press release:
Snow Leopard further extends support for modern hardware with Open Computing Language (OpenCL), which lets any application tap into the vast gigaflops of GPU computing power previously available only to graphics applications. OpenCL is based on the C programming language and has been proposed as an open standard.
AMD has decided to support OpenCL (and DirectX 11) instead of the now deprecated Close to Metal in its Stream framework.
RapidMind announced their adoption of OpenCL underneath their development platform, in order to support GPUs from multiple vendors with one interface. NVIDIA announced on December 9, 2008 to add full support for the OpenCL 1.0 specification to its GPU Computing Toolkit.
The OpenCL specification is under active development at Khronos - which open to any interested company to join.
The interesting thing about OpenCL for me is it's interoperability with OpenGL. Both APIs may handle the the same type of workloads and share the textures, Buffer Objects and Renderbuffers. OpenCL objects are created from OpenGL objects, for example Vertex and image data generated with OpenCL may the rendered with OpenGL, on the other hand, images rendered with OpenGL may be post-processed with OpenCL kernels.
