OpenCL for OS X
OpenCL lets you tap into the parallel computing power of modern GPUs and multicore CPUs to accelerate compute-intensive tasks in your Mac apps. Use OpenCL to incorporate advanced numerical and data analytics features, perform cutting-edge image and media processing, and deliver accurate physics and AI simulation in games.
Reference, Guides, and Sample Code
- Selecting a GPU for OpenCL on the Mac Pro (Late 2013) Learn how to query the GPUs of the latest Mac Pro and select one or both for use by OpenCL.
- OpenCL and OpenGL Support in OS X Mavericks Get details on the OpenCL and OpenGL versions supported by Mac computers running OS X Mavericks.
- OS X v10.9 API Diffs Review the latest updates to the OpenCL.framework for OS X Mavericks.
- OpenCL Programming Guide for Mac Learn about OpenCL for OS X, including parallelizable routines, Grand Central Dispatch, memory objects, data sharing, and more.
- OpenCL Specification Get full details on the OpenCL standard from the OpenCL Specification version 1.2.
- OpenCL N-Body Simulation Example Uses OpenCL and OpenGL to simulate a classical N-Body gravitational system while efficiently using one or more GPUs.
- OpenCL Hello World Example View sample code on basic usage of OpenCL, calculating a mathematical square for a buffer of floating point values.
- OpenCL Procedural Geometric Displacement Example View sample code on binding OpenCL to existing OpenGL buffers.
- OpenCL Procedural Grass and Terrain Example View sample code on creating a procedural field of grass on a generated terrain model, which is then rendered with OpenGL.
OpenCL is an open standard defined by the Khronos Group. For more information about the OpenCL specification, visit http://www.khronos.org/registry/cl/